From: "Heiko Stübner" <heiko@sntech.de>
To: Tobias Merkens <tobias@merkens.bayern>
Cc: linux-rockchip@lists.infradead.org,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-mmc@vger.kernel.org, Tobias Merkens <tobias@merkens.bayern>
Subject: Re: [PATCH 1/1] arm64: dts: rockchip: Wait after SD card power-off on NanoPi R2S
Date: Tue, 01 Dec 2026 10:49:34 +0100 [thread overview]
Message-ID: <y4l6ZwP_SdyhgbQK0CfbMQ@sntech.de> (raw)
In-Reply-To: <010201a22d909746-21eeb94f-7a0a-408b-8c55-24572d7a64ea-000000@eu-west-1.amazonses.com>
Hi Tobias,
Am Montag, 30. November 2026, 18:46:20 Mitteleuropäische Normalzeit schrieb Tobias Merkens:
> On a NanoPi R2S with a UHS-I SD card in SDR104 mode, the board hangs
> after a reboot until the power is removed. After the reboot only the SYS
> LED lights up, and the board does not answer on the network.
>
> The cause is not confirmed, but the likely explanation is that the card
> is still in 1.8V signalling when the SoC is reset. The boot ROM and
> U-Boot then cannot read the card, because they communicate with it at
> 3.3V.
>
> Commit 3c6f98b6e64e ("mmc: core: Add power-off-delay-us support") makes
> the delay after switching off the card supply configurable, and its
> default is 1 ms. Set the delay to 10 ms so that the card has time to
> discharge before the SoC is reset. This keeps the UHS modes of the card
> enabled.
>
> On one board with one card, every reboot hangs with the default delay,
> but every tested reboot succeeds with a delay of 1.5 ms or longer. The
> 10 ms is about seven times the shortest setting that worked.
>
> The devicetree change and this changelog were written with an AI
> assistant (Claude, claude-sonnet-5-5). The submitter reviewed both.
>
> Signed-off-by: Tobias Merkens <tobias@merkens.bayern>
For that bit of changeset, this commit message is way too long.
Please try to write this yourself - way much shorter.
Also your mailer mangles message-ids, breaking threading and one-patch
messages don't need a cover-letter.
> ---
> arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi
> index 308e526..cc53a3f 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi
> @@ -27,3 +27,7 @@
> };
> };
> };
> +
> +&sdmmc {
> + power-off-delay-us = <10000>;
> +};
>
if this is needed to discharge cards to survive reboots, somehow part of
me things if that is more a property for the rk3328.dtsi, instead of later
having dozens of of patches for each board, after more people actually
discover the issue and possible fix.
Afterall most boards follow the reference design and 10ms on reboot
(probably) don't really matter that much.
Heiko
prev parent reply other threads:[~2026-12-01 9:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261130174550.2304-1-tobias@merkens.bayern>
2026-11-30 17:46 ` [PATCH 1/1] arm64: dts: rockchip: Wait after SD card power-off on NanoPi R2S Tobias Merkens
2026-12-01 9:49 ` Heiko Stübner [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=y4l6ZwP_SdyhgbQK0CfbMQ@sntech.de \
--to=heiko@sntech.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh@kernel.org \
--cc=tobias@merkens.bayern \
/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