linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: imx6: phycore-som: Disable micro-SD write protection
@ 2021-09-09 17:25 Yunus Bas
  2021-09-09 18:08 ` Fabio Estevam
  2021-09-22  8:23 ` Shawn Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Yunus Bas @ 2021-09-09 17:25 UTC (permalink / raw)
  To: robh+dt, shawnguo, s.hauer, devicetree, linux-kernel
  Cc: festevam, linux-arm-kernel

The micro-SD card doesn't feature a write-protect pin. Set the
corresponding property in the devicetree to handle this behavior
correctly and suppress driver warnings.

Signed-off-by: Yunus Bas <y.bas@phytec.de>
---
 arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi | 1 +
 arch/arm/boot/dts/imx6ul-phytec-segin.dtsi | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi b/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi
index 019938562aa9..0873f53ea275 100644
--- a/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi
@@ -256,6 +256,7 @@ &usdhc1 {
 	pinctrl-0 = <&pinctrl_usdhc1>;
 	cd-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
 	no-1-8-v;
+	disable-wp;
 	status = "disabled";
 };
 
diff --git a/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi b/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi
index 95e4080dd0a6..0d4ba9494cf2 100644
--- a/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi
+++ b/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi
@@ -191,6 +191,7 @@ &usdhc1 {
 	no-1-8-v;
 	keep-power-in-suspend;
 	wakeup-source;
+	disable-wp;
 	status = "disabled";
 };
 
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: dts: imx6: phycore-som: Disable micro-SD write protection
  2021-09-09 17:25 [PATCH] ARM: dts: imx6: phycore-som: Disable micro-SD write protection Yunus Bas
@ 2021-09-09 18:08 ` Fabio Estevam
  2021-09-22  8:23 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2021-09-09 18:08 UTC (permalink / raw)
  To: Yunus Bas
  Cc: Rob Herring, Shawn Guo, Sascha Hauer,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE

Hi Yunus,

On Thu, Sep 9, 2021 at 2:25 PM Yunus Bas <y.bas@phytec.de> wrote:
>
> The micro-SD card doesn't feature a write-protect pin. Set the
> corresponding property in the devicetree to handle this behavior
> correctly and suppress driver warnings.
>
> Signed-off-by: Yunus Bas <y.bas@phytec.de>

Reviewed-by: Fabio Estevam <festevam@gmail.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: dts: imx6: phycore-som: Disable micro-SD write protection
  2021-09-09 17:25 [PATCH] ARM: dts: imx6: phycore-som: Disable micro-SD write protection Yunus Bas
  2021-09-09 18:08 ` Fabio Estevam
@ 2021-09-22  8:23 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2021-09-22  8:23 UTC (permalink / raw)
  To: Yunus Bas
  Cc: robh+dt, s.hauer, devicetree, linux-kernel, festevam, linux-arm-kernel

On Thu, Sep 09, 2021 at 07:25:55PM +0200, Yunus Bas wrote:
> The micro-SD card doesn't feature a write-protect pin. Set the
> corresponding property in the devicetree to handle this behavior
> correctly and suppress driver warnings.
> 
> Signed-off-by: Yunus Bas <y.bas@phytec.de>

Applied, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-22  8:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09 17:25 [PATCH] ARM: dts: imx6: phycore-som: Disable micro-SD write protection Yunus Bas
2021-09-09 18:08 ` Fabio Estevam
2021-09-22  8:23 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).