summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <[email protected]>2025-12-11 17:34:57 +0100
committerTien Fong Chee <[email protected]>2025-12-17 18:50:32 +0800
commit62584916c9f7b029e8a43d7102189713b365d241 (patch)
tree55c836c0c32ee8f58cecd4a082148b574a7d5d52
parent94d0c1d3edb4a71b49c1ff85f5f3990c727bcaba (diff)
spl: mmc: Respect sector value passed to mmc_load_image_raw_partition
This function and the sector parameter evolved over the time. By now, sector is influenced by spl_mmc_get_uboot_raw_sector which allows to adjust the read sector with an offset that U-Boot proper may have inside the partition. That used to work by chance if both CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR and CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION were enabled. Since 2a00d73d081a they are a choice, and we need to drop the condition to maintain this feature. Signed-off-by: Jan Kiszka <[email protected]> Reviewed-by: Tien Fong Chee <[email protected]>
-rw-r--r--common/spl/spl_mmc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 1942e417075..47cfe4aef58 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -137,11 +137,7 @@ static int mmc_load_image_raw_partition(struct spl_image_info *spl_image,
return ret;
}
-#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
return mmc_load_image_raw_sector(spl_image, bootdev, mmc, info.start + sector);
-#else
- return mmc_load_image_raw_sector(spl_image, bootdev, mmc, info.start);
-#endif
}
#endif