[PATCH RFC] ARM: BCM5301X: add restart support
Arnd Bergmann
arnd at arndb.de
Wed Jan 21 01:03:29 PST 2015
On Wednesday 21 January 2015 09:44:26 Rafał Miłecki wrote:
>
> +static void bcm5301x_restart(enum reboot_mode mode, const char *cmd)
> +{
> + struct bcma_bus *bus = bcm5301x_get_bcma_bus();
> +
> + if (bus)
> + bcma_chipco_watchdog_timer_set(&bus->drv_cc, 1);
> + else
> + pr_warn("Unable to access bcma bus\n");
> +
> + while (1)
> + ;
> +}
> +
Please move the restart implementation into the driver that provides
the bcma_chipco_watchdog_timer_set() function, and use the new
restart notifier to hook it up, instead of the machine_descriptor
field.
Arnd
More information about the linux-arm-kernel
mailing list