linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity
@ 2019-01-21  3:21 Arthur Demchenkov
  2019-01-21 17:11 ` Tony Lindgren
  2019-01-21 17:52 ` Fabio Estevam
  0 siblings, 2 replies; 7+ messages in thread
From: Arthur Demchenkov @ 2019-01-21  3:21 UTC (permalink / raw)
  To: bcousson, tony, robh+dt, mark.rutland, linux-omap, devicetree,
	linux-kernel
  Cc: Arthur Demchenkov

Wrong polarity of card detect GPIO pin leads to the system not
booting from external mmc, if the back cover of N900 is closed.
When the cover is open the system boots fine.

This wasn't noticed before, because of a bug, which was fixed
by commit e63201f19 (mmc: omap_hsmmc: Delete platform data GPIO
CD and WP).

Kernels up to 4.19 ignored the card detect GPIO from DT.
---
 arch/arm/boot/dts/omap3-n900.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 182a53991c90..826920e6b878 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -814,7 +814,7 @@
 	/* For debugging, it is often good idea to remove this GPIO.
 	   It means you can remove back cover (to reboot by removing
 	   battery) and still use the MMC card. */
-	cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
+	cd-gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* 160 */
 };
 
 /* most boards use vaux3, only some old versions use vmmc2 instead */
-- 
2.11.0


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

* Re: [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity
  2019-01-21  3:21 [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity Arthur Demchenkov
@ 2019-01-21 17:11 ` Tony Lindgren
  2019-01-21 19:45   ` Aaro Koskinen
  2019-01-21 17:52 ` Fabio Estevam
  1 sibling, 1 reply; 7+ messages in thread
From: Tony Lindgren @ 2019-01-21 17:11 UTC (permalink / raw)
  To: Arthur Demchenkov, Aaro Koskinen
  Cc: bcousson, robh+dt, mark.rutland, linux-omap, devicetree, linux-kernel

Hi,

* Arthur Demchenkov <spinal.by@gmail.com> [190121 03:22]:
> Wrong polarity of card detect GPIO pin leads to the system not
> booting from external mmc, if the back cover of N900 is closed.
> When the cover is open the system boots fine.
> 
> This wasn't noticed before, because of a bug, which was fixed
> by commit e63201f19 (mmc: omap_hsmmc: Delete platform data GPIO
> CD and WP).

Aaro, does this work for your test case too?

> Kernels up to 4.19 ignored the card detect GPIO from DT.

Hmm so should this have a Fixes tag or not?

Regards,

Tony

>  arch/arm/boot/dts/omap3-n900.dts | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
> index 182a53991c90..826920e6b878 100644
> --- a/arch/arm/boot/dts/omap3-n900.dts
> +++ b/arch/arm/boot/dts/omap3-n900.dts
> @@ -814,7 +814,7 @@
>  	/* For debugging, it is often good idea to remove this GPIO.
>  	   It means you can remove back cover (to reboot by removing
>  	   battery) and still use the MMC card. */
> -	cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
> +	cd-gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* 160 */
>  };
>  
>  /* most boards use vaux3, only some old versions use vmmc2 instead */
> -- 
> 2.11.0
> 

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

* Re: [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity
  2019-01-21  3:21 [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity Arthur Demchenkov
  2019-01-21 17:11 ` Tony Lindgren
@ 2019-01-21 17:52 ` Fabio Estevam
  2019-01-21 20:00   ` Tony Lindgren
  1 sibling, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2019-01-21 17:52 UTC (permalink / raw)
  To: Arthur Demchenkov
  Cc: bcousson, Tony Lindgren, Rob Herring, Mark Rutland, linux-omap,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel

On Mon, Jan 21, 2019 at 5:43 AM Arthur Demchenkov <spinal.by@gmail.com> wrote:
>
> Wrong polarity of card detect GPIO pin leads to the system not
> booting from external mmc, if the back cover of N900 is closed.
> When the cover is open the system boots fine.
>
> This wasn't noticed before, because of a bug, which was fixed
> by commit e63201f19 (mmc: omap_hsmmc: Delete platform data GPIO
> CD and WP).
>
> Kernels up to 4.19 ignored the card detect GPIO from DT.

Signed-off-by tag is missing.

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

* Re: [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity
  2019-01-21 17:11 ` Tony Lindgren
@ 2019-01-21 19:45   ` Aaro Koskinen
  0 siblings, 0 replies; 7+ messages in thread
From: Aaro Koskinen @ 2019-01-21 19:45 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Arthur Demchenkov, bcousson, robh+dt, mark.rutland, linux-omap,
	devicetree, linux-kernel

Hi,

On Mon, Jan 21, 2019 at 09:11:01AM -0800, Tony Lindgren wrote:
> * Arthur Demchenkov <spinal.by@gmail.com> [190121 03:22]:
> > Wrong polarity of card detect GPIO pin leads to the system not
> > booting from external mmc, if the back cover of N900 is closed.
> > When the cover is open the system boots fine.
> > 
> > This wasn't noticed before, because of a bug, which was fixed
> > by commit e63201f19 (mmc: omap_hsmmc: Delete platform data GPIO
> > CD and WP).
> 
> Aaro, does this work for your test case too?

Yeah..

> > Kernels up to 4.19 ignored the card detect GPIO from DT.
> 
> Hmm so should this have a Fixes tag or not?

I think it should as v4.20 is broken.

A.

> Regards,
> 
> Tony
> 
> >  arch/arm/boot/dts/omap3-n900.dts | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
> > index 182a53991c90..826920e6b878 100644
> > --- a/arch/arm/boot/dts/omap3-n900.dts
> > +++ b/arch/arm/boot/dts/omap3-n900.dts
> > @@ -814,7 +814,7 @@
> >  	/* For debugging, it is often good idea to remove this GPIO.
> >  	   It means you can remove back cover (to reboot by removing
> >  	   battery) and still use the MMC card. */
> > -	cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
> > +	cd-gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* 160 */
> >  };
> >  
> >  /* most boards use vaux3, only some old versions use vmmc2 instead */
> > -- 
> > 2.11.0
> > 

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

* Re: [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity
  2019-01-21 17:52 ` Fabio Estevam
@ 2019-01-21 20:00   ` Tony Lindgren
  2019-01-22  4:59     ` Arthur D.
  0 siblings, 1 reply; 7+ messages in thread
From: Tony Lindgren @ 2019-01-21 20:00 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Arthur Demchenkov, bcousson, Rob Herring, Mark Rutland,
	linux-omap,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel

* Fabio Estevam <festevam@gmail.com> [190121 17:52]:
> On Mon, Jan 21, 2019 at 5:43 AM Arthur Demchenkov <spinal.by@gmail.com> wrote:
> >
> > Wrong polarity of card detect GPIO pin leads to the system not
> > booting from external mmc, if the back cover of N900 is closed.
> > When the cover is open the system boots fine.
> >
> > This wasn't noticed before, because of a bug, which was fixed
> > by commit e63201f19 (mmc: omap_hsmmc: Delete platform data GPIO
> > CD and WP).
> >
> > Kernels up to 4.19 ignored the card detect GPIO from DT.
> 
> Signed-off-by tag is missing.

Arthur, please reply with your Signed-off-by for this
thread so I can apply it. That is unless you want to
repost the patch for updated comments etc.

Regards,

Tony

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

* Re: [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity
  2019-01-21 20:00   ` Tony Lindgren
@ 2019-01-22  4:59     ` Arthur D.
  2019-01-22 22:56       ` Tony Lindgren
  0 siblings, 1 reply; 7+ messages in thread
From: Arthur D. @ 2019-01-22  4:59 UTC (permalink / raw)
  To: Fabio Estevam, Tony Lindgren
  Cc: bcousson, Rob Herring, Mark Rutland, linux-omap,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel

Signed-off-by: Arthur Demchenkov <spinal.by@gmail.com>

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

* Re: [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity
  2019-01-22  4:59     ` Arthur D.
@ 2019-01-22 22:56       ` Tony Lindgren
  0 siblings, 0 replies; 7+ messages in thread
From: Tony Lindgren @ 2019-01-22 22:56 UTC (permalink / raw)
  To: Arthur D.
  Cc: Fabio Estevam, bcousson, Rob Herring, Mark Rutland, linux-omap,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel

* Arthur D. <spinal.by@gmail.com> [190122 04:59]:
> Signed-off-by: Arthur Demchenkov <spinal.by@gmail.com>

Thanks applying into omap-for-v5.0/fixes.

Tony

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

end of thread, other threads:[~2019-01-22 22:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-21  3:21 [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity Arthur Demchenkov
2019-01-21 17:11 ` Tony Lindgren
2019-01-21 19:45   ` Aaro Koskinen
2019-01-21 17:52 ` Fabio Estevam
2019-01-21 20:00   ` Tony Lindgren
2019-01-22  4:59     ` Arthur D.
2019-01-22 22:56       ` Tony Lindgren

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).