Skip to contentSkip to conversation

ARM: shmobile: r8a7743: Fix Watchdog timer clock

PATCH New Chris Paterson 2 participants 3 messages Jan 9, 2018 – Jan 25, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: shmobile: r8a7743: Fix Watchdog timer clock

R8A7743_CLK_RWDT should be 2 as specified in the hardware manual.

Fixes 9683f2eba952bc0d ("ARM: shmobile: r8a7743: Add clock index macros for DT sources")
---
 include/dt-bindings/clock/r8a7743-clock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/dt-bindings/clock/r8a7743-clock.h +1 -1
index a5c7e387e66dfd55..53f54dfce59245d8 100644
@@ -71,7 +71,7 @@
 #define R8A7743_CLK_USBDMAC1		31
 
 /* MSTP4 */
-#define R8A7743_CLK_RWDT		4
+#define R8A7743_CLK_RWDT		2
 #define R8A7743_CLK_USB_DDM		6
 #define R8A7743_CLK_IRQC		7
 #define R8A7743_CLK_INTC_SYS		8
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 ARM: shmobile: r8a7743: Fix Watchdog timer clock

Quoted 1 line · Chris Paterson

R8A7743_CLK_RWDT should be 2 as specified in the hardware manual.

This macro doesn't seem to be used in any in-tree device trees. Should it be?

I've applied this anyway.

Ben.

Quoted 20 lines
Fixes 9683f2eba952bc0d ("ARM: shmobile: r8a7743: Add clock index macros for DT sources")

---
?include/dt-bindings/clock/r8a7743-clock.h | 2 +-
?1 file changed, 1 insertion(+), 1 deletion(-)

include/dt-bindings/clock/r8a7743-clock.h +0 -0
index a5c7e387e66dfd55..53f54dfce59245d8 100644
@@ -71,7 +71,7 @@
Quoted 1 line

?#define R8A7743_CLK_USBDMAC1 31

?
?/* MSTP4 */

include/dt-bindings/clock/r8a7743-clock.h +1 -1
-#define R8A7743_CLK_RWDT		4
+#define R8A7743_CLK_RWDT		2

?#define R8A7743_CLK_USB_DDM 6
?#define R8A7743_CLK_IRQC 7
?#define R8A7743_CLK_INTC_SYS 8

Signature · 2 lines
Ben Hutchings
Software Developer, Codethink Ltd.
#2 lore raw

PATCH 1/1 ARM: shmobile: r8a7743: Fix Watchdog timer clock

Hello Ben,

Quoted 7 lines

From: Ben Hutchings [mailto:ben.hutchings at codethink.co.uk]
Sent: 24 January 2018 22:02

Quoted 1 line · Chris Paterson

R8A7743_CLK_RWDT should be 2 as specified in the hardware manual.

This macro doesn't seem to be used in any in-tree device trees.

You're right; it isn't at the moment.

At some point in the future we'll be adding support for RWDT to the iwg20m, so I thought I'd get this fix submitted now before I forgot.

Quoted 1 line

Should it be?

If we weren't planning to use it - good question!

I guess usually a fix like this would come down the v4.4 LTS route? But as this file has been added directly to CIP this won't happen.

Presumably similar bug fix patches will have to be directly applied to CIP Kernels in the future anyway (once LTS support has ended), even if there is no known use case. There may be users of the CIP Kernel that we aren't aware of?

Quoted 2 lines

I've applied this anyway.

Thank you!

Kind regards, Chris

Quoted 28 lines

Ben.

Quoted 19 lines
Fixes 9683f2eba952bc0d ("ARM: shmobile: r8a7743: Add clock index

macros for DT sources")

---
?include/dt-bindings/clock/r8a7743-clock.h | 2 +-
?1 file changed, 1 insertion(+), 1 deletion(-)

include/dt-bindings/clock/r8a7743-clock.h +0 -0
index a5c7e387e66dfd55..53f54dfce59245d8 100644
@@ -71,7 +71,7 @@
Quoted 1 line

?#define R8A7743_CLK_USBDMAC1 31

?/* MSTP4 */

include/dt-bindings/clock/r8a7743-clock.h +1 -1
-#define R8A7743_CLK_RWDT		4
+#define R8A7743_CLK_RWDT		2
Quoted 3 lines

?#define R8A7743_CLK_USB_DDM 6
?#define R8A7743_CLK_IRQC 7
?#define R8A7743_CLK_INTC_SYS 8

--
Ben Hutchings
Software Developer, Codethink Ltd.