mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 07:04:28 +00:00
common: avb_verify: don't call mmc_switch_part for SD
mmc_switch_part() is used for switching between hw partitions on eMMC (boot0, boot1, user, rpmb). There is no need to do that for SD card. This fixes the avb command usage on SD cards. Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: Dragan Simic <dsimic@manjaro.org> Link: https://lore.kernel.org/r/20240209192045.3961832-2-igor.opaniuk@foundries.io Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
This commit is contained in:
parent
cfbeb4b0b9
commit
c2f72d00ab
1 changed files with 5 additions and 3 deletions
|
@ -358,9 +358,11 @@ static struct mmc_part *get_partition(AvbOps *ops, const char *partition)
|
|||
goto err;
|
||||
}
|
||||
|
||||
if (IS_MMC(part->mmc)) {
|
||||
ret = mmc_switch_part(part->mmc, part_num);
|
||||
if (ret)
|
||||
goto err;
|
||||
}
|
||||
|
||||
mmc_blk = mmc_get_blk_desc(part->mmc);
|
||||
if (!mmc_blk) {
|
||||
|
|
Loading…
Reference in a new issue