]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rtc: abx80x: Fix WDT bit position of the status register
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Tue, 8 Oct 2024 04:17:37 +0000 (13:17 +0900)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 11 Nov 2024 21:10:26 +0000 (22:10 +0100)
The WDT bit in the status register is 5, not 6. This fixes from 6 to 5.

Link: https://abracon.com/Support/AppsManuals/Precisiontiming/AB08XX-Application-Manual.pdf
Link: https://www.microcrystal.com/fileadmin/Media/Products/RTC/App.Manual/RV-1805-C3_App-Manual.pdf
Fixes: 749e36d0a0d7 ("rtc: abx80x: add basic watchdog support")
Cc: Jeremy Gebben <jgebben@sweptlaser.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Link: https://lore.kernel.org/r/20241008041737.1640633-1-iwamatsu@nigauri.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-abx80x.c

index 1298962402ff47c388ea8fea6c1baf7b1a986d49..3fee27914ba805388bd45e8399c3c06ab44514e7 100644 (file)
@@ -39,7 +39,7 @@
 #define ABX8XX_REG_STATUS      0x0f
 #define ABX8XX_STATUS_AF       BIT(2)
 #define ABX8XX_STATUS_BLF      BIT(4)
-#define ABX8XX_STATUS_WDT      BIT(6)
+#define ABX8XX_STATUS_WDT      BIT(5)
 
 #define ABX8XX_REG_CTRL1       0x10
 #define ABX8XX_CTRL_WRITE      BIT(0)