[PATCH] rtc: abx80x: Fix WDT bit position of the status register

Nobuhiro Iwamatsu posted 1 patch 1 year, 4 months ago
drivers/rtc/rtc-abx80x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] rtc: abx80x: Fix WDT bit position of the status register
Posted by Nobuhiro Iwamatsu 1 year, 4 months ago
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>
---
 drivers/rtc/rtc-abx80x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-abx80x.c b/drivers/rtc/rtc-abx80x.c
index 1298962402ff47..3fee27914ba805 100644
--- a/drivers/rtc/rtc-abx80x.c
+++ b/drivers/rtc/rtc-abx80x.c
@@ -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)
-- 
2.45.2
Re: [PATCH] rtc: abx80x: Fix WDT bit position of the status register
Posted by Alexandre Belloni 1 year, 3 months ago
On Tue, 08 Oct 2024 13:17:37 +0900, Nobuhiro Iwamatsu wrote:
> The WDT bit in the status register is 5, not 6. This fixes from 6 to 5.
> 
> 

Applied, thanks!

[1/1] rtc: abx80x: Fix WDT bit position of the status register
      https://git.kernel.org/abelloni/c/10e078b273ee

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com