mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
power: reset: adjust priority of simple syscon reboot driver
Currently, all restart handler use the priority 128, including watchdogs. Probably most SoC have a watchdog, and some of them register it also as a restart handler. But if a SoC specifies a dedicated reboot capability using this syscon driver, this is usually the preferred reboot method. Hence, raise the priority of this driver to 192. Signed-off-by: Stefan Agner <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Acked-by: Mark Rutland <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
99a79565e6
commit
b81180b3fd
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ static int syscon_reboot_probe(struct platform_device *pdev)
|
|||
return -EINVAL;
|
||||
|
||||
ctx->restart_handler.notifier_call = syscon_restart_handle;
|
||||
ctx->restart_handler.priority = 128;
|
||||
ctx->restart_handler.priority = 192;
|
||||
err = register_restart_handler(&ctx->restart_handler);
|
||||
if (err)
|
||||
dev_err(dev, "can't register restart notifier (err=%d)\n", err);
|
||||
|
|
|
|||
Loading…
Reference in a new issue