]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
watchdog: keembay: Clear either the TO or TH interrupt bit
authorShruthi Sanil <shruthi.sanil@intel.com>
Mon, 17 May 2021 17:49:48 +0000 (23:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:02:19 +0000 (16:02 +0200)
commit2a8bff7686171016e457fdf674a141f7201730a5
tree40482ee787354699cbc283432e37d034b8224246
parent5db9998e32f3fa9dace496459726f6e33024c52e
watchdog: keembay: Clear either the TO or TH interrupt bit

[ Upstream commit 0e36a09faea25f4564d41a0c28938199b605148e ]

During the interrupt service routine of the TimeOut interrupt and
the ThresHold interrupt, the respective interrupt clear bit
have to be cleared and not both.

Fixes: fa0f8d51e90d ("watchdog: Add watchdog driver for Intel Keembay Soc")
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Kris Pan <kris.pan@intel.com>
Signed-off-by: Shruthi Sanil <shruthi.sanil@intel.com>
Link: https://lore.kernel.org/r/20210517174953.19404-5-shruthi.sanil@intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/keembay_wdt.c