From: Carlo Caione <ccaione@baylibre.com>
To: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
Cc: u-boot@lists.u-boot-project.org, Simon Glass <sjg@chromium.org>,
Sumit Garg <sumit.garg@kernel.org>,
u-boot-qcom@groups.io, Tom Rini <trini@konsulko.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Bhupesh Sharma <bhupesh.linux@gmail.com>,
Neha Malcom Francis <n-francis@ti.com>,
Johan Jonker <jbx6244@gmail.com>,
Casey Connolly <casey.connolly@linaro.org>,
Anshul Dalal <anshuld@ti.com>,
Petr Hodina <petr.hodina@protonmail.com>,
Michael Srba <Michael.Srba@seznam.cz>,
Jonas Karlman <jonas@kwiboo.se>,
Quentin Schulz <u-boot@0leil.net>,
Kever Yang <kever.yang@rock-chips.com>,
Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>,
David Lechner <dlechner@baylibre.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Alexey Charkov <alchark@flipper.net>, Peng Fan <peng.fan@nxp.com>,
Daniel Golle <daniel@makrotopia.org>
Subject: Re: [PATCH v4 7/9] part: introduce SPL_PARTITION_GET_INFO and select it from consumers
Date: Wed, 25 Nov 2026 12:44:08 +0100 [thread overview]
Message-ID: <awbJTusr9OUDHk1l@macbook> (raw)
In-Reply-To: <20261019-spl_ufs-v4-7-61432d0b258c@oss.qualcomm.com>
On Mon, Oct 19, 2026 at 16:19:02 +0100, Balaji Selvanathan wrote:
> part_get_info_ptr() in include/part.h resolves the .get_info partition
> driver hook to a real function or NULL in SPL, depending on a list of
> defined() checks for the SPL features that need partition lookups.
>
> Add an SPL_PARTITION_GET_INFO bool symbol in disk/Kconfig and have each
> consumer (EXT4, FAT, SquashFS, MMC raw-mode partition and partition
> type, and UFS raw-mode partition) select it. Replace the list of checks
> in part.h with a single check on CONFIG_SPL_PARTITION_GET_INFO, so a
> new SPL boot method only needs to select the symbol to get partition
> lookup support.
>
> Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
> ---
> Changes in v4:
> - Replace the ad-hoc part.h OR-chain check with a proper
> SPL_PARTITION_GET_INFO Kconfig symbol selected by consumers
> - Drop Varadarajan's Reviewed-by as the approach changed
> ---
> common/spl/Kconfig | 6 ++++++
> disk/Kconfig | 8 ++++++++
> include/part.h | 4 +---
> 3 files changed, 15 insertions(+), 3 deletions(-)
>
> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> index a32c5fd11e6..adeb2ccc7a7 100644
> --- a/common/spl/Kconfig
> +++ b/common/spl/Kconfig
> @@ -575,12 +575,14 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
> config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
> bool "MMC raw mode: by partition"
> select SPL_LOAD_BLOCK
> + select SPL_PARTITION_GET_INFO
> help
> Use a partition for loading U-Boot when using MMC/SD in raw mode.
>
> config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
> bool "MMC raw mode: by partition type"
> select SPL_LOAD_BLOCK
> + select SPL_PARTITION_GET_INFO
> depends on DOS_PARTITION
> help
> Use partition type for specifying U-Boot partition on MMC/SD in
> @@ -771,6 +773,7 @@ config SPL_ETH
> config SPL_FS_EXT4
> bool "Support EXT filesystems"
> select SPL_CRC16 if EXT4_WRITE
> + select SPL_PARTITION_GET_INFO
> help
> Enable support for EXT2/3/4 filesystems with SPL. This permits
> U-Boot (or Linux in Falcon mode) to be loaded from an EXT
> @@ -780,6 +783,7 @@ config SPL_FS_EXT4
> config SPL_FS_SQUASHFS
> bool "Support SquashFS filesystems"
> select FS_SQUASHFS
> + select SPL_PARTITION_GET_INFO
> help
> Enable support for SquashFS filesystems with SPL. This permits
> U-Boot (or Linux in Falcon mode) to be loaded from a SquashFS
> @@ -789,6 +793,7 @@ config SPL_FS_SQUASHFS
> config SPL_FS_FAT
> bool "Support FAT filesystems"
> select FS_FAT
> + select SPL_PARTITION_GET_INFO
> help
> Enable support for FAT and VFAT filesystems with SPL. This
> permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
> @@ -1674,6 +1679,7 @@ config SPL_UFS_RAW_U_BOOT_USE_SECTOR
> config SPL_UFS_RAW_U_BOOT_USE_PARTITION
> bool "UFS raw mode: by partition"
> select SPL_LIBDISK_SUPPORT
> + select SPL_PARTITION_GET_INFO
> help
> Use a partition for loading U-Boot when using UFS in raw mode.
> You can specify either a partition name or partition number.
SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_DYNAMIC also needs to select
SPL_PARTITION_GET_INFO.
Cheers,
--
Carlo Caione
next prev parent reply other threads:[~2026-11-25 11:44 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 10:48 [PATCH v4 0/9] spl: ufs: add UFS boot support for Qualcomm Snapdragon in SPL Balaji Selvanathan
2026-10-19 10:48 ` [PATCH v4 1/9] spl: ufs: rename SPL_UFS_SUPPORT config to SPL_UFS Balaji Selvanathan
2026-11-06 22:10 ` David Lechner
2026-10-19 10:48 ` [PATCH v4 2/9] lib: update charset.o build rule to use SPL_UFS Balaji Selvanathan
2026-10-19 10:58 ` Alexey Charkov
2026-10-19 10:48 ` [PATCH v4 3/9] configs: rename SPL_UFS_SUPPORT to SPL_UFS Balaji Selvanathan
2026-10-20 8:51 ` Neil Armstrong
2026-10-19 10:48 ` [PATCH v4 4/9] ufs: qcom: add SPL_UFS_QCOM Kconfig and SPL build support Balaji Selvanathan
2026-10-20 8:52 ` Neil Armstrong
2026-10-19 10:49 ` [PATCH v4 5/9] phy: qcom: add SPL_PHY_QCOM_QMP_UFS for SPL UFS boot Balaji Selvanathan
2026-10-20 8:52 ` Neil Armstrong
2026-10-19 10:49 ` [PATCH v4 6/9] spl: ufs: add Kconfig choice for U-Boot location method Balaji Selvanathan
2026-10-20 8:53 ` Neil Armstrong
2026-10-19 10:49 ` [PATCH v4 7/9] part: introduce SPL_PARTITION_GET_INFO and select it from consumers Balaji Selvanathan
2026-11-25 11:44 ` Carlo Caione [this message]
2026-10-19 10:49 ` [PATCH v4 8/9] spl: add UFS boot mode defines to spl.h Balaji Selvanathan
2026-10-20 8:57 ` Neil Armstrong
2026-10-19 10:49 ` [PATCH v4 9/9] spl: ufs: add partition-based U-Boot loading support Balaji Selvanathan
2026-10-20 8:56 ` Neil Armstrong
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=awbJTusr9OUDHk1l@macbook \
--to=ccaione@baylibre.com \
--cc=Michael.Srba@seznam.cz \
--cc=alchark@flipper.net \
--cc=anshuld@ti.com \
--cc=balaji.selvanathan@oss.qualcomm.com \
--cc=bhupesh.linux@gmail.com \
--cc=casey.connolly@linaro.org \
--cc=daniel@makrotopia.org \
--cc=dlechner@baylibre.com \
--cc=jbx6244@gmail.com \
--cc=jonas@kwiboo.se \
--cc=kever.yang@rock-chips.com \
--cc=n-francis@ti.com \
--cc=neil.armstrong@linaro.org \
--cc=peng.fan@nxp.com \
--cc=petr.hodina@protonmail.com \
--cc=sjg@chromium.org \
--cc=sumit.garg@kernel.org \
--cc=trini@konsulko.com \
--cc=u-boot-qcom@groups.io \
--cc=u-boot@0leil.net \
--cc=u-boot@lists.u-boot-project.org \
--cc=varadarajan.narayanan@oss.qualcomm.com \
--cc=xypron.glpk@gmx.de \
/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