U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yixun Lan <dlan@kernel.org>
To: Eric Chung <eric.chung@riscstar.com>
Cc: Tim Ouyang <tim609@andestech.com>,
	u-boot-spacemit@groups.io, u-boot@lists.u-boot-project.org,
	Tom Rini <trini@konsulko.com>, Leo Liang <leo.liang@sifive.com>,
	Yao Zi <me@ziyao.cc>, Wei Fu <wefu@redhat.com>,
	Huan Zhou <pericycle.cc@gmail.com>,
	Guodong Xu <guodong@riscstar.com>,
	Raymond Mao <raymond.mao@riscstar.com>,
	Peng Fan <peng.fan@nxp.com>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	Anshul Dalal <anshuld@ti.com>,
	Bastien Curutchet <bastien.curutchet@bootlin.com>,
	Johan Jonker <jbx6244@gmail.com>,
	Sumit Garg <sumit.garg@kernel.org>,
	Iker Pedrosa <ikerpedrosam@gmail.com>,
	Alex Elder <elder@riscstar.com>,
	Andre Heider <a.heider@gmail.com>,
	Trevor Gamblin <tgamblin@baylibre.com>,
	oyst.lnx@gmail.com
Subject: Re: [PATCH v10 01/17] spacemit: k1: select boot device via config registers
Date: Sun, 6 Sep 2026 13:00:00 +0000	[thread overview]
Message-ID: <20260906130000-GKA2330@kernel.org> (raw)
In-Reply-To: <CAH22mJyZR5y6AUt+DvB-K9fCR=S1PFo3F0EqvV_9_WJike+tQg@mail.gmail.com>

Hi Eric and Tim,

On 16:15 Sun 06 Sep     , Eric Chung wrote:
> On Wed, Sep 2, 2026 at 4:52 PM Tim Ouyang <tim609@andestech.com> wrote:
> >
> > On Mon, Aug 24, 2026 at 04:50:36PM +0800, Eric Chung wrote:
> > > Add logic to determine the current boot device by reading the
> > > SoC's configuration registers, rather than using a hardcoded
> > > default.
> > >
> > > Signed-off-by: Eric Chung <eric.chung@riscstar.com>
> > > Reviewed-by: Yao Zi <me@ziyao.cc>

..

> >
> > Hi Eric,
> >
> > I previously said that I found no obvious issues, but after taking
> > another look, I noticed that read_boot_mode() is called twice: first
> > from board_init_f() and later from spl_boot_device().
> >
> > The first call returns a BOOT_DEVICE_* value, which board_init_f()
> > writes back to BOOT_DEV_FLAG_REG. The second call then incorrectly
> > interprets that value as a BOOT_MODE_* value.
> >
> > For example, BOOT_DEVICE_SPI is written as 8, which does not match
> > BOOT_MODE_SPI (0x55d), so the second call falls back to MMC1.
> >
> > Please keep the BOOT_MODE_* and BOOT_DEVICE_* encodings separate.
> > Sorry for missing this in my initial review.
> > --
> > Best regards,
> > Tim Ouyang
> 
> Hi Tim,
> 
> Thanks for catching this issue. I've fixed it and submitted a new
> version. Please review and merge the new version.
> 
with spacemit custodian tree created [1], I think it's more proper
to route patches via there, I will review the patch in next few days
and setup CI to test..

[1] https://git.u-boot-project.org/u-boot/custodians/u-boot-spacemit

-- 
Yixun Lan (dlan)

  reply	other threads:[~2026-09-06 13:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-24  8:50 [PATCH v10 00/17] spacemit mmc driver Eric Chung
2026-08-24  8:50 ` [PATCH v10 01/17] spacemit: k1: select boot device via config registers Eric Chung
2026-09-02  8:51   ` Tim Ouyang
2026-09-06  8:15     ` Eric Chung
2026-09-06 13:00       ` Yixun Lan [this message]
2026-08-24  8:50 ` [PATCH v10 02/17] mmc: k1: add sdhci platform driver Eric Chung
2026-08-24  8:50 ` [PATCH v10 03/17] riscv: dts: spacemit: define a SPI controller node Eric Chung
2026-08-24  8:50 ` [PATCH v10 04/17] riscv: dts: spacemit: k1: add SD card controller and pinctrl support Eric Chung
2026-08-24  8:50 ` [PATCH v10 05/17] riscv: dts: spacemit: k1-bananapi-f3: add SD card support with UHS modes Eric Chung
2026-08-24  8:50 ` [PATCH v10 06/17] riscv: dts: spacemit: k1-musepi-pro: add PMIC and power infrastructure Eric Chung
2026-08-24  8:50 ` [PATCH v10 07/17] riscv: dts: spacemit: k1-musepi-pro: add 24c02 eeprom Eric Chung
2026-08-24  8:50 ` [PATCH v10 08/17] riscv: dts: spacemit: k1-musepi-pro: enable QSPI and add SPI NOR Eric Chung
2026-08-24  8:50 ` [PATCH v10 09/17] riscv: dts: spacemit: k1-musepi-pro: enable USB 3 ports Eric Chung
2026-08-24  8:50 ` [PATCH v10 10/17] riscv: dts: spacemit: k1-musepi-pro: enable PCIe ports Eric Chung
2026-08-24  8:50 ` [PATCH v10 11/17] riscv: dts: spacemit: k1-musepi-pro: set default console baud rate Eric Chung
2026-08-24  8:50 ` [PATCH v10 12/17] riscv: dts: spacemit: k1-musepi-pro: add SD card support with UHS modes Eric Chung
2026-08-24  8:50 ` [PATCH v10 13/17] dts: k1: enable mmc devices in SPL Eric Chung
2026-08-24  8:50 ` [PATCH v10 14/17] configs: k1: enable SD and eMMC support Eric Chung
2026-08-24  8:50 ` [PATCH v10 15/17] MAINTAINER: update Spacemit K1 entry Eric Chung
2026-08-24  8:50 ` [PATCH v10 16/17] doc: spacemit: flash on K1 SoC based boards Eric Chung
2026-08-24  8:50 ` [PATCH v10 17/17] spacemit: k1: fix product name detection and DTB matching in SPL Eric Chung
2026-09-02  1:51 ` [PATCH v10 00/17] spacemit mmc driver Eric Chung

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=20260906130000-GKA2330@kernel.org \
    --to=dlan@kernel.org \
    --cc=a.heider@gmail.com \
    --cc=anshuld@ti.com \
    --cc=bastien.curutchet@bootlin.com \
    --cc=elder@riscstar.com \
    --cc=eric.chung@riscstar.com \
    --cc=guodong@riscstar.com \
    --cc=ikerpedrosam@gmail.com \
    --cc=jbx6244@gmail.com \
    --cc=jh80.chung@samsung.com \
    --cc=leo.liang@sifive.com \
    --cc=me@ziyao.cc \
    --cc=oyst.lnx@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=pericycle.cc@gmail.com \
    --cc=raymond.mao@riscstar.com \
    --cc=sumit.garg@kernel.org \
    --cc=tgamblin@baylibre.com \
    --cc=tim609@andestech.com \
    --cc=trini@konsulko.com \
    --cc=u-boot-spacemit@groups.io \
    --cc=u-boot@lists.u-boot-project.org \
    --cc=wefu@redhat.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