]> 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)
commita4f3407c41605d14f09e490045d0609990cd5d94
treeabd39944e976fdd259518d657f7d1a1f2267ca52
parent740c0a57b8f1e36301218bf549f3c9cc833a60be
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: 36375491a439 ("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