Skip to contentSkip to conversation

Documentation: dt: update ti,am33xx-hsmmc swakeup workaround

PATCH Applied Andreas Fenkart 3 participants 3 messages Jul 7, 2015 – Jul 21, 2015

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

PATCH 1/1 Documentation: dt: update ti,am33xx-hsmmc swakeup workaround

Before 5b83b2234be6733cf the driver was hard coding the wakeup irq to be active low. The generic pm wakeirq does not override the active high/low parameter, hence it must be specified correctly in the device tree.
Mind that SDIO IRQ is active low as defined in the SDIO specification

---
 Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt +1 -1
index 76bf087..74166a0 100644
@@ -102,7 +102,7 @@ not every application needs SDIO irq, e.g. MMC cards.
 		pinctrl-1 = <&mmc1_idle>;
 		pinctrl-2 = <&mmc1_sleep>;
 		...
-		interrupts-extended = <&intc 64 &gpio2 28 0>;
+		interrupts-extended = <&intc 64 &gpio2 28 GPIO_ACTIVE_LOW>;
 	};
 
 	mmc1_idle : pinmux_cirq_pin {
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 16 lines · Andreas Fenkart

Before 5b83b2234be6733cf the driver was hard coding the wakeup irq to be active low. The generic pm wakeirq does not override the active high/low parameter, hence it must be specified correctly in the device tree.
Mind that SDIO IRQ is active low as defined in the SDIO specification

---
 Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt +0 -0
index 76bf087..74166a0 100644

Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt not every application needs SDIO irq, e.g. MMC cards. · line 108

Quoted 8 lines
Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt +1 -1
@@ -102,7 +102,7 @@ not every application needs SDIO irq, e.g. MMC cards.
 		pinctrl-1 = <&mmc1_idle>;
 		pinctrl-2 = <&mmc1_sleep>;
...
-		interrupts-extended = <&intc 64 &gpio2 28 0>;
+		interrupts-extended = <&intc 64 &gpio2 28 GPIO_ACTIVE_LOW>;
 	};
 
 	mmc1_idle : pinmux_cirq_pin {

Looks good to me:

Applied
#2 lore raw
In reply to Andreas Fenkart
Quoted 7 lines · Andreas Fenkart

Before 5b83b2234be6733cf the driver was hard coding the wakeup irq to be active low. The generic pm wakeirq does not override the active high/low parameter, hence it must be specified correctly in the device tree.
Mind that SDIO IRQ is active low as defined in the SDIO specification

Thanks, applied!

Kind regards
Uffe

Quoted 20 lines
---
 Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt +1 -2
index 76bf087..74166a0 100644
@@ -102,7 +102,7 @@ not every application needs SDIO irq, e.g. MMC cards.
                pinctrl-1 = <&mmc1_idle>;
                pinctrl-2 = <&mmc1_sleep>;
...
-               interrupts-extended = <&intc 64 &gpio2 28 0>;
+               interrupts-extended = <&intc 64 &gpio2 28 GPIO_ACTIVE_LOW>;
        };
 
        mmc1_idle : pinmux_cirq_pin {
--

2.1.4