[PATCH v3 05/14] part: enable part_get_info_ptr for SPL UFS partition boot

Tom Rini trini at konsulko.com
Mon Jun 15 18:31:18 CEST 2026


On Mon, Jun 15, 2026 at 12:30:01PM +0530, Balaji Selvanathan wrote:

> Add CONFIG_SPL_UFS_RAW_U_BOOT_USE_PARTITION to the preprocessor
> guard in include/part.h that controls whether part_get_info_ptr()
> resolves to a real function or NULL. This ensures partition lookup
> is available in SPL when UFS partition-based boot is selected,
> consistent with how MMC raw partition mode is handled.
> 
> Reviewed-by: Varadarajan Narayanan <varadarajan.narayanan at oss.qualcomm.com>
> Signed-off-by: Balaji Selvanathan <balaji.selvanathan at oss.qualcomm.com>
> ---
> Changes in v3:
> - No changes in v3
> ---
>  include/part.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/include/part.h b/include/part.h
> index 15daacd7faa..47b91e2043c 100644
> --- a/include/part.h
> +++ b/include/part.h
> @@ -463,7 +463,8 @@ ulong disk_blk_erase(struct udevice *dev, lbaint_t start, lbaint_t blkcnt);
>  # if defined(CONFIG_SPL_FS_EXT4) || defined(CONFIG_SPL_FS_FAT) || \
>  	defined(CONFIG_SPL_FS_SQUASHFS) || \
>  	defined(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION) || \
> -	defined(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE)
> +	defined(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE) || \
> +	defined(CONFIG_SPL_UFS_RAW_U_BOOT_USE_PARTITION)

Really feels like we need a proper symbol here for some library
function, and for the users to select it.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260615/15cc6a23/attachment.sig>


More information about the U-Boot mailing list