[PATCH v3 u-boot] mmc: spl: Make partition choice in default_spl_mmc_emmc_boot_partition() more explicit
Tom Rini
trini at konsulko.com
Sat Jul 8 01:43:34 CEST 2023
On Sat, Jul 08, 2023 at 12:54:38AM +0200, Pali Rohár wrote:
> To make eMMC partition choosing in default_spl_mmc_emmc_boot_partition()
> function better understandable, rewrite it via explicit switch-case code
> pattern.
>
> Also indicate an error when eMMC EXT_CSD[179] register is configured by
> user to value which is not suitable for eMMC booting and SPL do not know
> how to interpret it.
>
> Signed-off-by: Pali Rohár <pali at kernel.org>
I did some quick local testing to check on the size impact and this is
indeed quite manageable, thanks for reworking things!
Reviewed-by: Tom Rini <trini at konsulko.com>
--
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/20230707/a5adc016/attachment.sig>
More information about the U-Boot
mailing list