Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Neil Armstrong <neil.armstrong@linaro.org>
To: Lucas Tanure <tanure@linux.com>,
	Kevin Hilman <khilman@baylibre.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org,
	Xianwei Zhao <xianwei.zhao@amlogic.com>,
	linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] arm64: dts: amlogic: t7: khadas-vim4: allow the SD card to be power cycled
Date: Thu, 27 Aug 2026 10:51:17 +0200	[thread overview]
Message-ID: <80dd837c-9dd5-4b7e-9abb-02bb59d45da5@linaro.org> (raw)
In-Reply-To: <20260823115335.102219-3-tanure@linux.com>

On 8/23/26 13:53, Lucas Tanure wrote:
> SD cards start at 3.3V and switch to 1.8V to reach UHS-I speeds. Some
> cards refuse that switch, and the SD specification says the only way
> to recover is to power the card off and start again.
> 
> SD_3V3 is marked regulator-always-on, so the supply never goes off,
> the card stays stuck half way through the switch, and the MMC core
> retries forever:
> 
>    mmc1: error -95 whilst initialising SD card
> 
> Drop regulator-always-on. regulator-boot-on still turns the supply on
> at boot, and a card that refuses the switch now falls back to high
> speed instead of failing to initialise.
> 
> Fixes: 8c45bf9ae4ef ("arm64: dts: amlogic: t7: khadas-vim4: Add power regulators")
> Signed-off-by: Lucas Tanure <tanure@linux.com>
> Assisted-by: Claude:claude-fable-5
> ---
>   arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
> index 75d81ad6830d..c94afaaf8826 100644
> --- a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
> +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
> @@ -71,7 +71,6 @@ sd_3v3: regulator-sdcard-3v3 {
>   		vin-supply = <&vddao_3v3>;
>   		gpio = <&gpio GPIOD_11 GPIO_ACTIVE_LOW>;
>   		regulator-boot-on;
> -		regulator-always-on;
>   	};
>   
>   	sdio_pwrseq: sdio-pwrseq {

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

Thanks,
Neil


      reply	other threads:[~2026-08-27  8:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-23 11:53 [PATCH v2 0/2] arm64: dts: amlogic: t7: fix UART clock and SD card recovery Lucas Tanure
2026-08-23 11:53 ` [PATCH v2 1/2] arm64: dts: amlogic: t7: use the real UART pclk Lucas Tanure
2026-08-27  8:50   ` Neil Armstrong
2026-08-23 11:53 ` [PATCH v2 2/2] arm64: dts: amlogic: t7: khadas-vim4: allow the SD card to be power cycled Lucas Tanure
2026-08-27  8:51   ` Neil Armstrong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80dd837c-9dd5-4b7e-9abb-02bb59d45da5@linaro.org \
    --to=neil.armstrong@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=khilman@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=tanure@linux.com \
    --cc=xianwei.zhao@amlogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox