All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/8] dm: mmc: Tidy up handling of block devices
@ 2017-04-24  2:02 Simon Glass
  2017-04-24  2:02 ` [U-Boot] [PATCH 1/8] dm: mmc: Don't re-init when accessing environment Simon Glass
                   ` (8 more replies)
  0 siblings, 9 replies; 29+ messages in thread
From: Simon Glass @ 2017-04-24  2:02 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2017-06-02  2:56 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-24  2:02 [U-Boot] [PATCH 0/8] dm: mmc: Tidy up handling of block devices Simon Glass
2017-04-24  2:02 ` [U-Boot] [PATCH 1/8] dm: mmc: Don't re-init when accessing environment Simon Glass
2017-04-24  8:55   ` Jean-Jacques Hiblot
2017-04-29  0:27     ` Simon Glass
2017-05-03  2:35       ` Simon Glass
2017-05-03 13:05         ` Jean-Jacques Hiblot
2017-04-24  2:02 ` [U-Boot] [PATCH 2/8] dm: blk: Allow finding block devices without probing Simon Glass
2017-05-18 16:01   ` sjg at google.com
2017-04-24  2:02 ` [U-Boot] [PATCH 3/8] dm: blk: Add a function to find the next block device number Simon Glass
2017-04-24  8:04   ` Andy Shevchenko
2017-05-03  2:36     ` Simon Glass
2017-05-03 19:11       ` Andy Shevchenko
2017-05-18 16:01         ` sjg at google.com
2017-05-20  2:28           ` Simon Glass
2017-04-24  2:02 ` [U-Boot] [PATCH 4/8] dm: blk: Improve block device claiming Simon Glass
2017-05-18 16:01   ` sjg at google.com
2017-04-24  2:02 ` [U-Boot] [PATCH 5/8] dm: mmc: Avoid probing block devices in find_mmc_device() Simon Glass
2017-05-18 16:01   ` sjg at google.com
2017-04-24  2:02 ` [U-Boot] [PATCH 6/8] dm: mmc: Check that drivers have operations Simon Glass
2017-05-18 16:01   ` sjg at google.com
2017-04-24  2:02 ` [U-Boot] [PATCH 7/8] dm: mmc: Rewrite mmc_blk_probe() Simon Glass
2017-05-18 16:01   ` sjg at google.com
2017-04-24  2:02 ` [U-Boot] [PATCH 8/8] tegra: Convert MMC to use driver model for operations Simon Glass
2017-05-18 16:01   ` sjg at google.com
2017-05-18 16:33     ` Tom Warren
2017-05-18 16:35       ` Simon Glass
2017-05-29 14:49         ` Marcel Ziswiler
2017-06-02  2:56           ` Simon Glass
2017-04-24  8:09 ` [U-Boot] [PATCH 0/8] dm: mmc: Tidy up handling of block devices Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.