]> git.ipfire.org Git - thirdparty/linux.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)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 4 Nov 2024 12:13:02 +0000 (13:13 +0100)
commit51dfe714c03c066aabc815a2bb2adcc998dfcb30
treee7de90659e0d426e2af5391519545c1a160374c2
parent3ab1663af6c1ac7d4bd1fb1371a4972bac2922a4
watchdog: apple: Actually flush writes after requesting watchdog restart

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>
drivers/watchdog/apple_wdt.c