drivers: add check samsung panic reboot cmd
authorluodw1 <luodw1@motorola.com>
Wed, 7 Nov 2018 05:07:51 +0000 (13:07 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:21 +0000 (17:30 +0800)
Change-Id: Ie70dbd21976854bec03b14919f45a93575eb2e3c
Signed-off-by: luodw1 <luodw1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1265763
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/soc/samsung/exynos-reboot.c

index b13e7f8d74171422f0680930936293ffedf4736c..a24c61f455ab2e3d0cc21f720798b016e0637916 100644 (file)
@@ -349,6 +349,8 @@ static void exynos_reboot(enum reboot_mode mode, const char *cmd)
                        __raw_writel(0x77665507, restart_reason);
                } else if (!strncmp(cmd, "post-panic", 10)) {
                        __raw_writel(0x77665506, restart_reason);
+               } else if (!strncmp(cmd, "panic", 5)) {
+                       __raw_writel(0x77665505, restart_reason);
                } else {
                        __raw_writel(0x77665501, restart_reason);
                }