linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card
@ 2019-05-02  8:47 Faiz Abbas
  2019-05-02 14:20 ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Faiz Abbas @ 2019-05-02  8:47 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap
  Cc: mark.rutland, robh+dt, tony, bcousson, ulf.hansson, adrian.hunter

If UHS speed modes are enabled, a compatible SD card switches down to
1.8V during enumeration. If after this a software reboot/crash takes
place and on-chip ROM tries to enumerate the SD card, the difference in
IO voltages (host @ 3.3V and card @ 1.8V) may end up damaging the card.

The fix for this is to have support for power cycling the card in
hardware (with a PORz/soft-reset line causing a power cycle of the
card). Since am571x-, am572x- and am574x-idk don't have this
capability, disable voltage switching for these boards.

The major effect of this is that the maximum supported speed
mode is now high speed(50 MHz) down from SDR104(200 MHz).

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
---
 arch/arm/boot/dts/am57xx-idk-common.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/am57xx-idk-common.dtsi b/arch/arm/boot/dts/am57xx-idk-common.dtsi
index f7bd26458915..42e433da79ec 100644
--- a/arch/arm/boot/dts/am57xx-idk-common.dtsi
+++ b/arch/arm/boot/dts/am57xx-idk-common.dtsi
@@ -420,6 +420,7 @@
 	vqmmc-supply = <&ldo1_reg>;
 	bus-width = <4>;
 	cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
+	no-1-8-v;
 };
 
 &mmc2 {
-- 
2.19.2


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

* Re: [PATCH] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card
  2019-05-02  8:47 [PATCH] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card Faiz Abbas
@ 2019-05-02 14:20 ` Tony Lindgren
  2019-05-02 14:30   ` Faiz Abbas
  0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2019-05-02 14:20 UTC (permalink / raw)
  To: Faiz Abbas
  Cc: linux-kernel, devicetree, linux-omap, mark.rutland, robh+dt,
	bcousson, ulf.hansson, adrian.hunter

* Faiz Abbas <faiz_abbas@ti.com> [190502 01:48]:
> If UHS speed modes are enabled, a compatible SD card switches down to
> 1.8V during enumeration. If after this a software reboot/crash takes
> place and on-chip ROM tries to enumerate the SD card, the difference in
> IO voltages (host @ 3.3V and card @ 1.8V) may end up damaging the card.
> 
> The fix for this is to have support for power cycling the card in
> hardware (with a PORz/soft-reset line causing a power cycle of the
> card). Since am571x-, am572x- and am574x-idk don't have this
> capability, disable voltage switching for these boards.
> 
> The major effect of this is that the maximum supported speed
> mode is now high speed(50 MHz) down from SDR104(200 MHz).

This sounds a bit urgent, does it also need a stable tag or is
it safe to apply against any earlier kernels?

Regards,

Tony

> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
> ---
>  arch/arm/boot/dts/am57xx-idk-common.dtsi | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/boot/dts/am57xx-idk-common.dtsi b/arch/arm/boot/dts/am57xx-idk-common.dtsi
> index f7bd26458915..42e433da79ec 100644
> --- a/arch/arm/boot/dts/am57xx-idk-common.dtsi
> +++ b/arch/arm/boot/dts/am57xx-idk-common.dtsi
> @@ -420,6 +420,7 @@
>  	vqmmc-supply = <&ldo1_reg>;
>  	bus-width = <4>;
>  	cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
> +	no-1-8-v;
>  };
>  
>  &mmc2 {
> -- 
> 2.19.2
> 

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

* Re: [PATCH] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card
  2019-05-02 14:20 ` Tony Lindgren
@ 2019-05-02 14:30   ` Faiz Abbas
  2019-05-02 14:35     ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Faiz Abbas @ 2019-05-02 14:30 UTC (permalink / raw)
  To: Tony Lindgren, Faiz Abbas
  Cc: linux-kernel, devicetree, linux-omap, mark.rutland, robh+dt,
	bcousson, ulf.hansson, adrian.hunter

Hi Tony,

On 02/05/19 7:50 PM, Tony Lindgren wrote:
> * Faiz Abbas <faiz_abbas@ti.com> [190502 01:48]:
>> If UHS speed modes are enabled, a compatible SD card switches down to
>> 1.8V during enumeration. If after this a software reboot/crash takes
>> place and on-chip ROM tries to enumerate the SD card, the difference in
>> IO voltages (host @ 3.3V and card @ 1.8V) may end up damaging the card.
>>
>> The fix for this is to have support for power cycling the card in
>> hardware (with a PORz/soft-reset line causing a power cycle of the
>> card). Since am571x-, am572x- and am574x-idk don't have this
>> capability, disable voltage switching for these boards.
>>
>> The major effect of this is that the maximum supported speed
>> mode is now high speed(50 MHz) down from SDR104(200 MHz).
> 
> This sounds a bit urgent, does it also need a stable tag or is
> it safe to apply against any earlier kernels?
> 

This should be good to apply on any previous releases.

Thanks,
Faiz

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

* Re: [PATCH] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card
  2019-05-02 14:30   ` Faiz Abbas
@ 2019-05-02 14:35     ` Tony Lindgren
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2019-05-02 14:35 UTC (permalink / raw)
  To: Faiz Abbas
  Cc: Faiz Abbas, linux-kernel, devicetree, linux-omap, mark.rutland,
	robh+dt, bcousson, ulf.hansson, adrian.hunter

* Faiz Abbas <a0230074@ti.com> [190502 14:30]:
> Hi Tony,
> 
> On 02/05/19 7:50 PM, Tony Lindgren wrote:
> > * Faiz Abbas <faiz_abbas@ti.com> [190502 01:48]:
> >> If UHS speed modes are enabled, a compatible SD card switches down to
> >> 1.8V during enumeration. If after this a software reboot/crash takes
> >> place and on-chip ROM tries to enumerate the SD card, the difference in
> >> IO voltages (host @ 3.3V and card @ 1.8V) may end up damaging the card.
> >>
> >> The fix for this is to have support for power cycling the card in
> >> hardware (with a PORz/soft-reset line causing a power cycle of the
> >> card). Since am571x-, am572x- and am574x-idk don't have this
> >> capability, disable voltage switching for these boards.
> >>
> >> The major effect of this is that the maximum supported speed
> >> mode is now high speed(50 MHz) down from SDR104(200 MHz).
> > 
> > This sounds a bit urgent, does it also need a stable tag or is
> > it safe to apply against any earlier kernels?
> > 
> 
> This should be good to apply on any previous releases.

OK applying both your MMC patches into fixes today.

Thanks,

Tony

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

end of thread, other threads:[~2019-05-02 14:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-02  8:47 [PATCH] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card Faiz Abbas
2019-05-02 14:20 ` Tony Lindgren
2019-05-02 14:30   ` Faiz Abbas
2019-05-02 14:35     ` 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).