* [PATCH] spl: mmc: restore partition lookup in dynamic mode
@ 2026-11-23 11:09 Carlo Caione
2026-11-25 7:49 ` Peng Fan (OSS)
0 siblings, 1 reply; 3+ messages in thread
From: Carlo Caione @ 2026-11-23 11:09 UTC (permalink / raw)
To: Tom Rini, David Lechner, u-boot
Cc: Balaji Selvanathan, Peng Fan, Jaehoon Chung, Carlo Caione,
Johan Jonker
The introduction of SPL_PARTITION_GET_INFO left dynamic MMC mode without
partition lookup support. The partition drivers' get_info callbacks are
NULL, so lookups fail with -ENOSYS and prevent booting, including the
Genio 700 firmware A/B flow.
Fixes: 8b5070034da4 ("part: introduce SPL_PARTITION_GET_INFO and select it from consumers")
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
---
common/spl/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index ef70e96ad83..05a253c9528 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -593,6 +593,7 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_DYNAMIC
bool "MMC raw mode: by board-selected partition"
select SPL_LOAD_BLOCK
select SPL_PARTITIONS
+ select SPL_PARTITION_GET_INFO
help
Select the partition at runtime instead of using a fixed number.
The board must implement spl_mmc_boot_partition().
---
base-commit: 0b3875426f261150e6cf9ee14aacad9b76c07937
change-id: 20261123-ccaione-upstream-spl-mmc-dynamic-get-info-ec88a5d5ee2c
Best regards,
--
Carlo Caione <ccaione@baylibre.com>
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] spl: mmc: restore partition lookup in dynamic mode
2026-11-23 11:09 [PATCH] spl: mmc: restore partition lookup in dynamic mode Carlo Caione
@ 2026-11-25 7:49 ` Peng Fan (OSS)
2026-11-25 11:39 ` Carlo Caione
0 siblings, 1 reply; 3+ messages in thread
From: Peng Fan (OSS) @ 2026-11-25 7:49 UTC (permalink / raw)
To: Carlo Caione
Cc: Peng Fan, Tom Rini, David Lechner, u-boot, Balaji Selvanathan,
Peng Fan, Jaehoon Chung, Johan Jonker
On Mon, 23 Nov 2026 12:09:40 +0100 Carlo Caione <ccaione@baylibre.com> wrote:
> The introduction of SPL_PARTITION_GET_INFO left dynamic MMC mode without
> partition lookup support. The partition drivers' get_info callbacks are
> NULL, so lookups fail with -ENOSYS and prevent booting, including the
> Genio 700 firmware A/B flow.
>
> Fixes: 8b5070034da4 ("part: introduce SPL_PARTITION_GET_INFO and select it from consumers")
Not find this commit in Tom's tree (:
Regards
Peng
> Signed-off-by: Carlo Caione <ccaione@baylibre.com>
> ---
> common/spl/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> index ef70e96ad83..05a253c9528 100644
> --- a/common/spl/Kconfig
> +++ b/common/spl/Kconfig
> @@ -593,6 +593,7 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_DYNAMIC
> bool "MMC raw mode: by board-selected partition"
> select SPL_LOAD_BLOCK
> select SPL_PARTITIONS
> + select SPL_PARTITION_GET_INFO
> help
> Select the partition at runtime instead of using a fixed number.
> The board must implement spl_mmc_boot_partition().
>
> ---
> base-commit: 0b3875426f261150e6cf9ee14aacad9b76c07937
> change-id: 20261123-ccaione-upstream-spl-mmc-dynamic-get-info-ec88a5d5ee2c
>
> Best regards,
> --
> Carlo Caione <ccaione@baylibre.com>
Sent using hkml (https://github.com/sjp38/hackermail)
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] spl: mmc: restore partition lookup in dynamic mode
2026-11-25 7:49 ` Peng Fan (OSS)
@ 2026-11-25 11:39 ` Carlo Caione
0 siblings, 0 replies; 3+ messages in thread
From: Carlo Caione @ 2026-11-25 11:39 UTC (permalink / raw)
To: Peng Fan (OSS)
Cc: Tom Rini, David Lechner, u-boot, Balaji Selvanathan, Peng Fan,
Jaehoon Chung, Johan Jonker
On Wed, Nov 25, 2026 at 15:49:51 +0100, Peng Fan (OSS) wrote:
> On Mon, 23 Nov 2026 12:09:40 +0100 Carlo Caione <ccaione@baylibre.com> wrote:
>
> > The introduction of SPL_PARTITION_GET_INFO left dynamic MMC mode without
> > partition lookup support. The partition drivers' get_info callbacks are
> > NULL, so lookups fail with -ENOSYS and prevent booting, including the
> > Genio 700 firmware A/B flow.
> >
> > Fixes: 8b5070034da4 ("part: introduce SPL_PARTITION_GET_INFO and select it from consumers")
>
> Not find this commit in Tom's tree (:
Well, my mistake. That commit is currently in David’s mediatek-staging
branch. I found the regression while testing that branch and I thought
it was upstream already.
Sorry for the noise, I'll comment directly on the Balaji’s patch.
Cheers,
--
Carlo Caione
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-25 11:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 11:09 [PATCH] spl: mmc: restore partition lookup in dynamic mode Carlo Caione
2026-11-25 7:49 ` Peng Fan (OSS)
2026-11-25 11:39 ` Carlo Caione
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox