Skip to content

Commit 1e63dca

Browse files
committed
Merge tag 'mmc-4.2-rc3' of git://git.linaro.org/people/ulf.hansson/mmc
Pull MMC fixes from Ulf Hansson: "Here are some mmc fixes intended for v4.2 rc4. Note, most of the changes are for the sdhci-esdhc-imx controller, which also required us to modify some related DTS files. Those changes have been acked by the SoC maintainer. MMC core: - Fix a reference inbalance issue for power_ro_lock_show() sysfs handler MMC host: - omap_hsmmc: Fix IRQ errorhandling for CD, DTO, and CRC - sdhci: Prevent a kernel panic while using DMA - mtk-sd: Let it depend on HAS_DMA to prevent build errors - sdhci-esdhc: Make 8BIT bus work - sdhci-esdhc-imx: Fix some regressions for DT based platforms - sdhci-pxav3: Fix a regression for DT based platforms" * tag 'mmc-4.2-rc3' of git://git.linaro.org/people/ulf.hansson/mmc: mmc: sdhci-pxav3: fix platform_data is not initialized dts: mmc: fsl-imx-esdhc: remove fsl,cd-controller support mmc: sdhci-esdhc-imx: clear f_max in boarddata mmc: sdhci-esdhc-imx: remove duplicated dts parsing mmc: sdhci: make max-frequency property in device tree work mmc: sdhci-esdhc-imx: move all non dt probe code into one function mmc: sdhci-esdhc-imx: fix cd regression for dt platform dts: imx7: fix sd card gpio polarity specified in device tree dts: imx25: fix sd card gpio polarity specified in device tree dts: imx6: fix sd card gpio polarity specified in device tree dts: imx53: fix sd card gpio polarity specified in device tree dts: imx51: fix sd card gpio polarity specified in device tree mmc: sdhci-esdhc: Make 8BIT bus work mmc: block: Add missing mmc_blk_put() in power_ro_lock_show() mmc: MMC_MTK should depend on HAS_DMA mmc: sdhci check parameters before call dma_free_coherent mmc: omap_hsmmc: Handle BADA, DEB and CEB interrupts mmc: omap_hsmmc: Fix DTO and DCRC handling
2 parents a52bd79 + 9cd7604 commit 1e63dca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+202
-187
lines changed

Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Required properties:
1717
"fsl,imx6sx-usdhc"
1818

1919
Optional properties:
20-
- fsl,cd-controller : Indicate to use controller internal card detection
2120
- fsl,wp-controller : Indicate to use controller internal write protection
2221
- fsl,delay-line : Specify the number of delay cells for override mode.
2322
This is used to set the clock delay for DLL(Delay Line) on override mode
@@ -35,7 +34,6 @@ esdhc@70004000 {
3534
compatible = "fsl,imx51-esdhc";
3635
reg = <0x70004000 0x4000>;
3736
interrupts = <1>;
38-
fsl,cd-controller;
3937
fsl,wp-controller;
4038
};
4139

arch/arm/boot/dts/imx25-pdk.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*/
1111

1212
/dts-v1/;
13+
#include <dt-bindings/gpio/gpio.h>
1314
#include <dt-bindings/input/input.h>
1415
#include "imx25.dtsi"
1516

@@ -114,8 +115,8 @@
114115
&esdhc1 {
115116
pinctrl-names = "default";
116117
pinctrl-0 = <&pinctrl_esdhc1>;
117-
cd-gpios = <&gpio2 1 0>;
118-
wp-gpios = <&gpio2 0 0>;
118+
cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
119+
wp-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
119120
status = "okay";
120121
};
121122

arch/arm/boot/dts/imx51-apf51dev.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
&esdhc1 {
9999
pinctrl-names = "default";
100100
pinctrl-0 = <&pinctrl_esdhc1>;
101-
cd-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
101+
cd-gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
102102
bus-width = <4>;
103103
status = "okay";
104104
};

arch/arm/boot/dts/imx53-ard.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@
103103
&esdhc1 {
104104
pinctrl-names = "default";
105105
pinctrl-0 = <&pinctrl_esdhc1>;
106-
cd-gpios = <&gpio1 1 0>;
107-
wp-gpios = <&gpio1 9 0>;
106+
cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
107+
wp-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
108108
status = "okay";
109109
};
110110

arch/arm/boot/dts/imx53-m53evk.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@
124124
&esdhc1 {
125125
pinctrl-names = "default";
126126
pinctrl-0 = <&pinctrl_esdhc1>;
127-
cd-gpios = <&gpio1 1 0>;
128-
wp-gpios = <&gpio1 9 0>;
127+
cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
128+
wp-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
129129
status = "okay";
130130
};
131131

arch/arm/boot/dts/imx53-qsb-common.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@
147147
&esdhc3 {
148148
pinctrl-names = "default";
149149
pinctrl-0 = <&pinctrl_esdhc3>;
150-
cd-gpios = <&gpio3 11 0>;
151-
wp-gpios = <&gpio3 12 0>;
150+
cd-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
151+
wp-gpios = <&gpio3 12 GPIO_ACTIVE_HIGH>;
152152
bus-width = <8>;
153153
status = "okay";
154154
};

arch/arm/boot/dts/imx53-smd.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
&esdhc1 {
4242
pinctrl-names = "default";
4343
pinctrl-0 = <&pinctrl_esdhc1>;
44-
cd-gpios = <&gpio3 13 0>;
45-
wp-gpios = <&gpio4 11 0>;
44+
cd-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
45+
wp-gpios = <&gpio4 11 GPIO_ACTIVE_HIGH>;
4646
status = "okay";
4747
};
4848

arch/arm/boot/dts/imx53-tqma53.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
pinctrl-0 = <&pinctrl_esdhc2>,
4242
<&pinctrl_esdhc2_cdwp>;
4343
vmmc-supply = <&reg_3p3v>;
44-
wp-gpios = <&gpio1 2 0>;
45-
cd-gpios = <&gpio1 4 0>;
44+
wp-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
45+
cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
4646
status = "disabled";
4747
};
4848

arch/arm/boot/dts/imx53-tx53.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@
183183
};
184184

185185
&esdhc1 {
186-
cd-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>;
186+
cd-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
187187
fsl,wp-controller;
188188
pinctrl-names = "default";
189189
pinctrl-0 = <&pinctrl_esdhc1>;
190190
status = "okay";
191191
};
192192

193193
&esdhc2 {
194-
cd-gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>;
194+
cd-gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
195195
fsl,wp-controller;
196196
pinctrl-names = "default";
197197
pinctrl-0 = <&pinctrl_esdhc2>;

arch/arm/boot/dts/imx53-voipac-bsb.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@
119119
&esdhc2 {
120120
pinctrl-names = "default";
121121
pinctrl-0 = <&pinctrl_esdhc2>;
122-
cd-gpios = <&gpio3 25 0>;
123-
wp-gpios = <&gpio2 19 0>;
122+
cd-gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
123+
wp-gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
124124
vmmc-supply = <&reg_3p3v>;
125125
status = "okay";
126126
};

0 commit comments

Comments
 (0)