On Sat, Jun 06, 2026 at 03:48:36PM +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.
>
> Signed-off-by: Balaji Selvanathan <[email protected]>

Reviewed-by: Varadarajan Narayanan <[email protected]>

> ---
> Changes in v2:
> - Added enabling part_get_info_ptr for SPL UFS as a seperate patch
> ---
> ---
>  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)
>  #  define part_get_info_ptr(x)       x
>  # else
>  #  define part_get_info_ptr(x)       NULL
>
> --
> 2.34.1
>

Reply via email to