From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Date: Mon, 24 Apr 2017 11:09:49 +0300 Subject: [U-Boot] [PATCH 0/8] dm: mmc: Tidy up handling of block devices In-Reply-To: <20170424020211.20690-1-sjg@chromium.org> References: <20170424020211.20690-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Apr 24, 2017 at 5:02 AM, Simon Glass wrote: > 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. > > As far as I can see this series doesn't change power flow for MMC anyhow. If it's true, take my Reviewed-by: Andy Shevchenko > 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 > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > https://lists.denx.de/listinfo/u-boot -- With Best Regards, Andy Shevchenko