]> git.baikalelectronics.ru Git - uboot.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)
commite767bb14124898b7f46190882c20db7cc0f1b7ab
tree418dbaf5a7f88305974186a1297ff2e9ae4c5aaa
parent6aacfc810c89ceec6695782f718f2be1b243ecfd
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: 7b492406689 ("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