patch 2/2: More detailed power on reasons to match Nexus4's implementation.
Change-Id: I975cd37e5d9625489eb4ca95260bc7136f1e4f58 Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67980 Reviewed-by: Singhome Lee <singhome_lee@asus.com> Tested-by: Singhome Lee <singhome_lee@asus.com>
This commit is contained in:
committed by
Iliyan Malchev
parent
0ecaeb08f4
commit
e1ef9cc1d9
@@ -236,7 +236,6 @@ void msm_restart(char mode, const char *cmd)
|
||||
{
|
||||
|
||||
#ifdef CONFIG_MSM_DLOAD_MODE
|
||||
|
||||
/* This looks like a normal reboot at this point. */
|
||||
set_dload_mode(0);
|
||||
|
||||
@@ -280,6 +279,12 @@ void msm_restart(char mode, const char *cmd)
|
||||
if (in_panic == 1)
|
||||
set_kernel_crash_magic_number();
|
||||
reset:
|
||||
#else
|
||||
if (in_panic == 1) {
|
||||
__raw_writel(0x6d630100, restart_reason);
|
||||
pr_notice("in panic\n");
|
||||
mdelay(500);
|
||||
}
|
||||
#endif /* CONFIG_LGE_CRASH_HANDLER */
|
||||
|
||||
__raw_writel(0, msm_tmr0_base + WDT0_EN);
|
||||
|
||||
Reference in New Issue
Block a user