Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Hewitt <christianshewitt@gmail.com>
To: Igor Velkov <iav@iav.lv>
Cc: Neil Armstrong <neil.armstrong@linaro.org>,
	Kevin Hilman <khilman@baylibre.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Dongjin Kim <tobetter@gmail.com>,
	Eric Neulight <Eric.Neulight@linuxdev.slmail.me>,
	linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arm64: dts: amlogic: meson-sm1-odroid: let the SD card be powered down
Date: Thu, 8 Oct 2026 04:07:23 +0400	[thread overview]
Message-ID: <AD1E9AE8-8FA9-4CC2-AED8-AB2F455FA8E2@gmail.com> (raw)
In-Reply-To: <179140715034.293470.4459182430175564610@iav.lv>

> On 8 Oct 2026, at 1:05 am, Igor Velkov <iav@iav.lv> wrote:
> 
> Follow-up to the dropped patch.
> 
> An out-of-tree restart handler [1] power-cycles the card: it drives
> TFLASH_VDD and both tf_io lines low for 100 ms, then releases them and
> the card is powered again. With the SPI flash erased, ODROID-HC4 boots
> from SD after a warm reboot 5/5 on 6.18, 7.2 and 7.3-rc5. Without the
> handler the boot stalls in the ROM or in U-Boot.
> 
> Where should this live upstream: the mmc core on restart, meson-gx-mmc,
> or a board driver like this one?
> 
> [1] https://github.com/armbian/build/blob/main/patch/kernel/archive/meson64-7.3/meson64-reboot-02-port-to-gpiod.patch

I’ve been doing some bring-up work on S4 support with a VIM1S board
and Claude initially suggested a u-boot variant of the same patch [1]
which improved but did not fully resolve the situation. I was also not
able to explain why applying the same change via the Linux device-tree
that u-boot consumes didn’t have the same effect as essentially the
same change in the u-boot dtsi file.

Claude subsequently added a second patch [2] which resulted in 100%
reliable boot. However that allowed me to move forwards with kernel
work and I haven’t yet circled back to u-boot to run an experiment
without the first patch.

[1] https://github.com/chewitt/u-boot/commit/0a3f5693a4ff192eb044fc4c5a434770de053835
[2] https://github.com/chewitt/u-boot/commit/8e663632bc500ee6a83a846bcd3242231c33aa43

As usual both of Claude’s authoritatively worded descriptions sound
convincingly or conveniently good :)

Christian



      reply	other threads:[~2026-10-08  0:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-03  3:15 [PATCH] arm64: dts: amlogic: meson-sm1-odroid: let the SD card be powered down Igor Velkov via B4 Relay
2026-10-03  5:31 ` Igor Velkov
2026-10-07 21:05   ` Igor Velkov
2026-10-08  0:07     ` Christian Hewitt [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=AD1E9AE8-8FA9-4CC2-AED8-AB2F455FA8E2@gmail.com \
    --to=christianshewitt@gmail.com \
    --cc=Eric.Neulight@linuxdev.slmail.me \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=iav@iav.lv \
    --cc=jbrunet@baylibre.com \
    --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=linux-mmc@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=robh@kernel.org \
    --cc=tobetter@gmail.com \
    --cc=ulf.hansson@linaro.org \
    /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