]> git.dujemihanovic.xyz Git - u-boot.git/commit
env: mmc: Apply GPT only on eMMC user HW partition
authorMarek Vasut <marex@denx.de>
Thu, 9 Feb 2023 12:30:10 +0000 (13:30 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 23 Feb 2023 18:32:20 +0000 (13:32 -0500)
commit5b4acb0ff79df642ef6b1e35fd4b193a4dc3c62b
tree418dbaf5a7f88305974186a1297ff2e9ae4c5aaa
parentc1d266a781600f8c4c18449016edffb5597153cb
env: mmc: Apply GPT only on eMMC user HW partition

Apply the GPT U-Boot environment GUID type look up only on eMMC user
HW partition, do not apply the look up on eMMC boot HW partitions as
mmc_offset_try_partition() assumes either SD partitions or eMMC user
HW partition.

This fixes environment operation on systems where CONFIG_SYS_MMC_ENV_PART
is non-zero and CONFIG_SYS_REDUNDAND_ENVIRONMENT is set.

Fixes: 80105d8fd52 ("env: mmc: select GPT env partition by type guid")
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
env/mmc.c