[PATCH] arm64: dts: imx8mp-phyboard-pollux: Disable write-protect on SD card

Andrej Picej posted 1 patch 1 year, 5 months ago
arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts | 1 +
1 file changed, 1 insertion(+)
[PATCH] arm64: dts: imx8mp-phyboard-pollux: Disable write-protect on SD card
Posted by Andrej Picej 1 year, 5 months ago
Micro SD cards can't be physically write-protected like full-sized
cards. Disable this feature in device-tree to get rid of the kernel
warning:

"host does not support reading read-only switch, assuming write-enable"

Signed-off-by: Andrej Picej <andrej.picej@norik.com>
---
 arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
index 00a240484c25..791909dca6e1 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
@@ -267,6 +267,7 @@ &usdhc2 {
 	pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_pins>;
 	pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_pins>;
 	cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
+	disable-wp;
 	vmmc-supply = <&reg_usdhc2_vmmc>;
 	bus-width = <4>;
 	status = "okay";
-- 
2.34.1
Re: [PATCH] arm64: dts: imx8mp-phyboard-pollux: Disable write-protect on SD card
Posted by Shawn Guo 1 year, 4 months ago
On Tue, Jul 16, 2024 at 10:51:14AM +0200, Andrej Picej wrote:
> Micro SD cards can't be physically write-protected like full-sized
> cards. Disable this feature in device-tree to get rid of the kernel
> warning:
> 
> "host does not support reading read-only switch, assuming write-enable"
> 
> Signed-off-by: Andrej Picej <andrej.picej@norik.com>

Applied, thanks!
Re: [Upstream] [PATCH] arm64: dts: imx8mp-phyboard-pollux: Disable write-protect on SD card
Posted by Benjamin Hahn 1 year, 4 months ago
On 16.07.24 10:51, Andrej Picej wrote:
> Micro SD cards can't be physically write-protected like full-sized
> cards. Disable this feature in device-tree to get rid of the kernel
> warning:
>
> "host does not support reading read-only switch, assuming write-enable"
>
> Signed-off-by: Andrej Picej <andrej.picej@norik.com>
Reviewed-by: Benjamin Hahn <B.Hahn@phytec.de>
> ---
>   arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
> index 00a240484c25..791909dca6e1 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
> @@ -267,6 +267,7 @@ &usdhc2 {
>   	pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_pins>;
>   	pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_pins>;
>   	cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
> +	disable-wp;
>   	vmmc-supply = <&reg_usdhc2_vmmc>;
>   	bus-width = <4>;
>   	status = "okay";