]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: qcom: Remove incorrect usage of QCOM_WDT_ENABLE_IRQ
authorSai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Tue, 26 Jan 2021 15:02:41 +0000 (20:32 +0530)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 7 Feb 2021 13:41:28 +0000 (14:41 +0100)
commit72db389f7d1df362b6132245d0691088cecce875
treeabd39944e976fdd259518d657f7d1a1f2267ca52
parent51ef5b58dafb7ab850d1b9af5486153ba8ecf747
watchdog: qcom: Remove incorrect usage of QCOM_WDT_ENABLE_IRQ

As per register documentation, QCOM_WDT_ENABLE_IRQ which is BIT(1)
of watchdog control register is wakeup interrupt enable bit and
not related to bark interrupt at all, BIT(0) is used for that.
So remove incorrect usage of this bit when supporting bark irq for
pre-timeout notification. Currently with this bit set and bark
interrupt specified, pre-timeout notification and/or watchdog
reset/bite does not occur.

Fixes: 14221343792c ("watchdog: qcom: support pre-timeout when the bark irq is available")
Cc: stable@vger.kernel.org
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20210126150241.10009-1-saiprakash.ranjan@codeaurora.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/qcom-wdt.c