Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7855380 authored by Ameya Thakur's avatar Ameya Thakur
Browse files

msm: msm_watchdog_v2: Increase watchdog bark timeout during panic



We now wait for 10 seconds during panic handling before triggerring a
watchdog bark. This is done because the earlier timeout of 4 seconds
was not sufficient for all targets which resulted in the device resetting
in the middle of the panic handler.

Change-Id: I1a45ac2ccf626d93848763fe56bb6ad164c2471d
Signed-off-by: default avatarAmeya Thakur <ameyat@codeaurora.org>
parent 61a09d4a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -126,9 +126,9 @@ static int panic_wdog_handler(struct notifier_block *this,
		__raw_writel(0, wdog_dd->base + WDT0_EN);
		mb();
	} else {
		__raw_writel(WDT_HZ * (panic_timeout + 4),
		__raw_writel(WDT_HZ * (panic_timeout + 10),
				wdog_dd->base + WDT0_BARK_TIME);
		__raw_writel(WDT_HZ * (panic_timeout + 4),
		__raw_writel(WDT_HZ * (panic_timeout + 10),
				wdog_dd->base + WDT0_BITE_TIME);
		__raw_writel(1, wdog_dd->base + WDT0_RST);
	}