mmc: update guard for legacy part_init() call
PATCH 1/2 mmc: update guard for legacy part_init() call
commit eef05fd3ba68 ("mmc: bring back partition init for non-DM MMC drivers") added this call to support drivers not yet migrated to driver model. Slightly previously, however, commit 91ff6865629c ("blk: Rework guard around part_init call") had removed the last reference in the code to SPL_LIBDISK_SUPPORT, replacing it with a non-stage-specific check for CONFIG_PARTITIONS and CONFIG_HAVE_BLOCK_DEVICE. Make that same change to the guard here.
---
drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/mmc.c +1 -1
@@ -2617,7 +2617,7 @@ static int mmc_startup(struct mmc *mmc) bdesc->revision[0 ] =0 ;#endif -#if !defined(CONFIG_DM_MMC ) && (!defined(CONFIG_SPL_BUILD ) || defined(CONFIG_SPL_LIBDISK_SUPPORT )) +#if !defined(CONFIG_DM_MMC ) && (defined(CONFIG_PARTITIONS ) && defined(CONFIG_HAVE_BLOCK_DEVICE ))part_init (bdesc);#endif
Signature · 1 line
2.24.1
PATCH 1/2 mmc: update guard for legacy part_init() call
Quoted 9 lines · Thomas Hebb
commit
eef05fd3ba68("mmc: bring back partition init for non-DM MMC drivers") added this call to support drivers not yet migrated to driver model. Slightly previously, however, commit91ff6865629c("blk: Rework guard aroundpart_initcall") had removed the last reference in the code toSPL_LIBDISK_SUPPORT, replacing it with a non-stage-specific check forCONFIG_PARTITIONSandCONFIG_HAVE_BLOCK_DEVICE. Make that same change to the guard here.Signed-off-by Thomas Hebb <[email protected]>
This breaks a large number of platforms including T1024QDS_SDCARD.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200210/c9879042/attachment.sig>
PATCH 1/2 mmc: update guard for legacy part_init() call
Quoted 10 lines · On Mon, Feb 10, 2020, 19:13 Tom Rini <[email protected]> wrote:
Quoted 8 lines · Thomas Hebb
commit
eef05fd3ba68("mmc: bring back partition init for non-DM MMC drivers") added this call to support drivers not yet migrated to driver model. Slightly previously, however, commit91ff6865629c("blk: Rework guard aroundpart_initcall") had removed the last reference in the code toSPL_LIBDISK_SUPPORT, replacing it with a non-stage-specific check forCONFIG_PARTITIONSandCONFIG_HAVE_BLOCK_DEVICE. Make that same change to the guard here.
Quoted 4 lines
Quoted 1 line
Signed-off-by Thomas Hebb <[email protected]>This breaks a large number of platforms including
T1024QDS_SDCARD.
Thanks for the catch! Absolutely my fault for not testing on all platforms. I'll figure out what I missed and send a v2 next week.
Quoted 3 lines
--
Tom