author | Xindong Xu <xindong.xu@amlogic.com> | 2018-10-16 06:41:30 (GMT) |
---|---|---|
committer | Xindong Xu <xindong.xu@amlogic.com> | 2018-11-08 05:41:52 (GMT) |
commit | b3c3b37c61b04284839175f2a7371fdf1ca0a7cf (patch) | |
tree | bc5080317eea5430bf0b78114e4a9739b9091439 | |
parent | b1d0d24848288b20c7ded9f2572b9cc8bde25f1f (diff) | |
download | common-b3c3b37c61b04284839175f2a7371fdf1ca0a7cf.zip common-b3c3b37c61b04284839175f2a7371fdf1ca0a7cf.tar.gz common-b3c3b37c61b04284839175f2a7371fdf1ca0a7cf.tar.bz2 |
reboot: reason: add reboot_reason quiescent [1/4]
bug: 117679594
Problem:
Android TV need reboot_reason quiescent
Solution:
add reboot_reason quiescent
Verify:
Beast,ampere
Change-Id: Ie5a748faae05be93c56722b7806df6179116a047
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
-rw-r--r-- | drivers/amlogic/reboot/reboot.c | 8 | ||||
-rw-r--r-- | include/linux/amlogic/reboot.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/amlogic/reboot/reboot.c b/drivers/amlogic/reboot/reboot.c index 4a1cc9b..6e5cd09 100644 --- a/drivers/amlogic/reboot/reboot.c +++ b/drivers/amlogic/reboot/reboot.c @@ -61,6 +61,14 @@ static u32 parse_reason(const char *cmd) reboot_reason = MESON_CRASH_REBOOT; else if (strcmp(cmd, "uboot_suspend") == 0) reboot_reason = MESON_UBOOT_SUSPEND; + else if (strcmp(cmd, "quiescent") == 0 || + strcmp(cmd, ",quiescent") == 0) + reboot_reason = MESON_QUIESCENT_REBOOT; + else if (strcmp(cmd, "recovery,quiescent") == 0 || + strcmp(cmd, "factory_reset,quiescent") == 0 || + strcmp(cmd, "quiescent,recovery") == 0 || + strcmp(cmd, "quiescent,factory_reset") == 0) + reboot_reason = MESON_RECOVERY_QUIESCENT_REBOOT; } else { if (kernel_panic) { if (strcmp(kernel_panic, "kernel_panic") == 0) { diff --git a/include/linux/amlogic/reboot.h b/include/linux/amlogic/reboot.h index de8c690..bf50223 100644 --- a/include/linux/amlogic/reboot.h +++ b/include/linux/amlogic/reboot.h @@ -25,5 +25,7 @@ #define MESON_HIBERNATE 6 #define MESON_BOOTLOADER_REBOOT 7 #define MESON_RPMBP_REBOOT 9 +#define MESON_QUIESCENT_REBOOT 10 #define MESON_CRASH_REBOOT 11 #define MESON_KERNEL_PANIC 12 +#define MESON_RECOVERY_QUIESCENT_REBOOT 14 |