Messages in this thread | | | From | Guenter Roeck <> | Subject | [PATCH v2 00/10] power/reset: Register drivers with restart handler | Date | Tue, 30 Sep 2014 10:48:26 -0700 |
| |
Convert drivers to use the kernel restart handler instead of setting arm_pm_restart directly.
This patch set depends on the kernel restart handler patchset submitted earlier.
Patch 01/10 was tested with qemu. All other patches were compile tested only.
Some of the restart handlers loop forever after the reset instruction was executed. It might makes sense to use mdelay() instead and return if resetting the system failed. I did not implement that since I do not know what reasonable delays would be.
The series does not include drivers to be introduced in the next commit window (at91, versatile, st-poweroff). Those can be converted later. I also did not convert the sun6i driver, in the assumption that it will be removed since the sunxi watchdog driver will register a restart handler for the architecture.
v2: Added Tested-by: and Acked-by: tags where received. Return error if restart handler registration fails.
| |