[PATCH 1/1] part: eliminate part_get_info_by_name_type()

Tom Rini trini at konsulko.com
Tue Jul 25 23:13:35 CEST 2023


On Sun, Jul 16, 2023 at 01:34:44PM +0200, Heinrich Schuchardt wrote:

> Since commit 56670d6fb83f ("disk: part: use common api to lookup part
> driver") part_get_info_by_name_type() ignores the part_type parameter
> used to restrict the partition table type.
> 
> omap_mmc_get_part_size() and part_get_info_by_name() are the only
> consumers.
> 
> omap_mmc_get_part_size() calls with part_type = PART_TYPE_EFI because at
> the time of implementation a speed up could be gained by passing the
> partition table type. After 5 years experience without this restriction
> it looks safe to keep it that way.
> 
> part_get_info_by_name() uses PART_TYPE_ALL.
> 
> Move the logic of part_get_info_by_name_type() to part_get_info_by_name()
> and replace the function in omap_mmc_get_part_size().
> 
> Fixes: 56670d6fb83f ("disk: part: use common api to lookup part driver")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

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


More information about the U-Boot mailing list