]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
watchdog: apple: Actually flush writes after requesting watchdog restart
authorNick Chan <towinchenmi@gmail.com>
Tue, 1 Oct 2024 16:59:51 +0000 (00:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:00 +0000 (20:03 +0100)
commit17cab7b4ff4b2266446ea8d93bf7281093485630
tree1e39da77187078cc3998121b6784a7f39845e908
parent337dbfeea335559045604d1ab55410a32c3219c1
watchdog: apple: Actually flush writes after requesting watchdog restart

[ Upstream commit 51dfe714c03c066aabc815a2bb2adcc998dfcb30 ]

Although there is an existing code comment about flushing the writes,
writes were not actually being flushed.

Actually flush the writes by changing readl_relaxed() to readl().

Fixes: 4ed224aeaf661 ("watchdog: Add Apple SoC watchdog driver")
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20241001170018.20139-2-towinchenmi@gmail.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/apple_wdt.c