[U-Boot] [PATCH 0/8] dm: mmc: Tidy up handling of block devices

Simon Glass sjg at chromium.org
Mon Apr 24 02:02:03 UTC 2017


The current MMC block device support has a few deficiencies which show up
when both CONFIG_BLK and CONFIG_DM_MMC_OPS are defined:

- Block device numbering does not always following MMC device numbering
- Environment in MMC does not always work correctly

In addition some parts of the code can be implemented in a better way.

This series fixes the above problems, adds a few tests and converts Tegra
over to use CONFIG_BLK and CONFIG_DM_MMC_OPS.


Simon Glass (8):
  dm: mmc: Don't re-init when accessing environment
  dm: blk: Allow finding block devices without probing
  dm: blk: Add a function to find the next block device number
  dm: blk: Improve block device claiming
  dm: mmc: Avoid probing block devices in find_mmc_device()
  dm: mmc: Check that drivers have operations
  dm: mmc: Rewrite mmc_blk_probe()
  tegra: Convert MMC to use driver model for operations

 arch/sandbox/dts/test.dts            | 12 +++++-
 board/toradex/common/tdx-cfg-block.c |  2 +-
 common/env_mmc.c                     |  3 +-
 configs/apalis-tk1_defconfig         |  2 -
 configs/apalis_t30_defconfig         |  2 -
 configs/beaver_defconfig             |  2 -
 configs/cardhu_defconfig             |  2 -
 configs/cei-tk1-som_defconfig        |  2 -
 configs/colibri_t20_defconfig        |  2 -
 configs/colibri_t30_defconfig        |  2 -
 configs/dalmore_defconfig            |  2 -
 configs/e2220-1170_defconfig         |  2 -
 configs/harmony_defconfig            |  2 -
 configs/jetson-tk1_defconfig         |  2 -
 configs/medcom-wide_defconfig        |  2 -
 configs/nyan-big_defconfig           |  2 -
 configs/p2371-0000_defconfig         |  2 -
 configs/p2371-2180_defconfig         |  2 -
 configs/p2571_defconfig              |  2 -
 configs/p2771-0000-000_defconfig     |  2 -
 configs/p2771-0000-500_defconfig     |  2 -
 configs/paz00_defconfig              |  2 -
 configs/plutux_defconfig             |  2 -
 configs/seaboard_defconfig           |  2 -
 configs/tec-ng_defconfig             |  2 -
 configs/tec_defconfig                |  2 -
 configs/trimslice_defconfig          |  2 -
 configs/venice2_defconfig            |  2 -
 configs/ventana_defconfig            |  2 -
 configs/whistler_defconfig           |  2 -
 drivers/block/blk-uclass.c           | 65 ++++++++++++++++++++++++++++----
 drivers/mmc/mmc-uclass.c             | 27 ++++++++++----
 drivers/mmc/tegra_mmc.c              | 72 ++++++++++++++++++++----------------
 include/blk.h                        | 15 +++++++-
 test/dm/blk.c                        | 60 +++++++++++++++++++++++++++++-
 35 files changed, 203 insertions(+), 107 deletions(-)

-- 
2.12.2.816.g2cccc81164-goog



More information about the U-Boot mailing list