mmc: Fix partition table init regression
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | sunxi: drop default SPL_LIBDISK_SUPPORT enablementarch/ | +0 | 2 replies | |
| 2/2 | mmc: bring back partition init for non-DM MMC driversdrivers/ | +4 | 5 replies | |
| 2/2 | mmc: bring back partition init for non-DM MMC drivers | +0 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Maxime Ripard | Simon Glass | Soeren Moch | Petr Å tetiar |
|---|---|---|---|---|
| Series | A-b | |||
| 1/2 | R-b | |||
| 2/2 | R-b | T-b | T-b | |
| 2/2 | R-b | T-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [U-Boot] [PATCH 0/2] mmc: Fix partition table init regression
Commit d0851c893706 ("blk: Call part_init() in the post_probe() method") in the 2019.01-rc1 merge window moved the partition init call to the generic DM layer, leaving every non-DM driver behind. As the result all Allwinner boards now don't read the partition table automatically anymore:
=> fatls mmc 0
** Unrecognized filesystem type **
=> fatload mmc 0 $kernel_addr_r Image-4.20-rc3
** Unrecognized filesystem type **
A quick workaround is to explicitly read the partition table, but this is still a regression, as it breaks existing scripts and workflows:
==========
=> mmc part
Partition Map for MMC device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type 1 8192 30873600 00000000-01 0c
=> fatls mmc 0
852304 xen
23544320 Image-4.20-rc3
2 file(s), 0 dir(s)
==========
These two patches are the minimal version to fix this problem, by bringing the implicit part_init() call back just for non-DM MMC drivers. Patch 1 is needed to keep the H6 SPL below the size limit.
The whole SPL_LIBDISK_SUPPORT symbol is now somewhat obsolete and needs some proper fixing, but this needs more discussion and testing and is probably nothing for this release still.
Thanks,
Andre.
Andre Przywara (2):
sunxi: drop default SPL_LIBDISK_SUPPORT enablement
mmc: bring back partition init for non-DM MMC drivers
arch/arm/Kconfig | 1 - drivers/mmc/mmc.c | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.14.5