]> git.baikalelectronics.ru Git - kernel.git/commit
Input: pm8941-pwrkey - respect reboot_mode for warm reset
authorShawn Guo <shawn.guo@linaro.org>
Sun, 17 Oct 2021 04:27:59 +0000 (21:27 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 17 Oct 2021 04:31:07 +0000 (21:31 -0700)
commit39055cebfd051147725ee4856f2365cda02f0fc8
treefc8ae10a577356975fb55ea34e15cc90dcbf83ce
parenta3d434208320f2c9531f73d0a4bb596de3dd4856
Input: pm8941-pwrkey - respect reboot_mode for warm reset

On some devices, e.g. Sony Xperia M4 Aqua, warm reset is used to reboot
device into bootloader and recovery mode.  Instead of always doing hard
reset, add a check on reboot_mode for possible warm reset.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20210714095850.27185-3-shawn.guo@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pm8941-pwrkey.c