From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.11.138.130 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796118583; b=tkStE0aqahj+lBlnoQ7oNy6H8ChaFRM/4Oj22ANY/L3lBTTogT1EZR8dunvnLQv+ogQa DqHBRIlCnoRu851Jy9xZ6qas3qoGHmsGQAbkyalZgiJSqIeQ4IZotWNf0V0ejjUNq6dgs FAn9G6YVv7VT5peFUkNqr52OvzpHQqyHIGZvp9h4oXcFtTHhvCukZjKJk8qL4NgBaYFu1 0Hc+cyRoCbXmcYepa0timovHUSpKDnsFLD73T4NBAVKrsbJc4oL8siVO39929WsPVOUqD HS5nGHa7PBhOGIpAKaGiFAlyGuoTVvFD+7AroKfG6VoPC64NIen2FeHZMrfM6VQiqyQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796118583; h=DMARC-Filter:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: Content-Type; bh=ry9FMVKInZ5jUquUUryKAZe4JAALmRbwnVLQ6cz/Z04=; b=ho3NOjglMnQTjghtDDSlihCZK0VhB+oQQMT+h1LHyeC4vhpOodtMZtj4PkPCzc5bLi6I 4+XXv8hKV+qjYzyZ2TrHGdJPJ6yoSru+D2yUSifcfEDrq8iym2thl7mVcQQslPhM8zYop VrIGp+emUfRbSSqJFAvAWIjvpgVEm9Wym30/CSpl52dPqVdNcLmSUxcup/TKhXBdIp6jy Ek7ZhD1HNzPezLGCyroKVFSUTEzpbyZio/LGgZ4+qAlciQSPCMiPCMuAcVwveCiMPl1h/ GBhbjhrYV/hx7wkIybUvZJJhKJyJTwE74RGf4Mmgy3crpYgMOAE8JDogRS2suleiKFQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; dkim=pass header.d=sntech.de header.i=@sntech.de header.a=rsa-sha256 header.s=gloria202408 header.b=FIgNSHfn; arc=none smtp.remote-ip=185.11.138.130 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70A40606A32A; Tue, 1 Dec 2026 09:49:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 70A40606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.a=rsa-sha256 header.s=gloria202408 header.b=FIgNSHfn DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Type:Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Reply-To; bh=ry9FMVKInZ5jUquUUryKAZe4JAALmRbwnVLQ6cz/Z04=; b=FIgNSHfnBq4HO8AFPdKVp9suDo 1lJinyabMnTbbXPI53M6KZv9mOc+MCwxv/4EfgDEeAdD14pr50b++EIo2M4xV0EGQDbly4TuDWXIP KQesS4utYolILcHur25KCZjBbK1G8XCqsqNmoPrjCKchGyr7OAkRI8O4g1pgWXDWef1syEQUmlqjP knCrtW302LoCKu6Wx3rxvGB5+Fk/Z5CsCM9xfEPIx9WgPHW5TTs/QZVsJ4HR+NYTxuz59KOZBCBNf uYRlnNOPPZ03vEJHYakQJv/gGOMIZ2Dacw3vUYIfWaM2gt3x7QMLVCtnapG1cYlLOXNKUVy6zBplq NdGieFog==; From: Heiko =?UTF-8?B?U3TDvGJuZXI=?= To: Tobias Merkens Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mmc@vger.kernel.org, Tobias Merkens 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 Message-ID: In-Reply-To: <010201a22d909746-21eeb94f-7a0a-408b-8c55-24572d7a64ea-000000@eu-west-1.amazonses.com> References: <20261130174550.2304-1-tobias@merkens.bayern> <010201a22d909746-21eeb94f-7a0a-408b-8c55-24572d7a64ea-000000@eu-west-1.amazonses.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hi Tobias, Am Montag, 30. November 2026, 18:46:20 Mitteleurop=C3=A4ische Normalzeit sc= hrieb 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. >=20 > 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. >=20 > 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. >=20 > 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. >=20 > The devicetree change and this changelog were written with an AI > assistant (Claude, claude-sonnet-5-5). The submitter reviewed both. >=20 > Signed-off-by: Tobias Merkens =46or 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(+) >=20 > diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi b/arch/a= rm64/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 =3D <10000>; > +}; >=20 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