u-boot/drivers/block
Stefan Roese 8a5cbc065d dm: blk: Use uclass_find_first/next_device() in blk_first/next_device()
This patch changes the calls to uclass_first/next_device() in blk_first/
next_device() to use uclass_find_first/next_device() instead. These functions
don't prepare the devices, which is correct in this case.

With this patch applied, the "usb storage" command now works again as
expected:

=> usb storage
  Device 0: Vendor: SanDisk Rev: 1.00 Prod: Ultra
  Type: Removable Hard Disk
  Capacity: 58656.0 MB = 57.2 GB (120127488 x 512)

Without this patch, it used to generate this buggy output:

=> usb storage
Card did not respond to voltage select!
mmc_init: -95, time 26
No storage devices, perhaps not 'usb start'ed..?

Signed-off-by: Stefan Roese <sr@denx.de>
Suggested-by: Simon Glass <sjg@chromium.org>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-12-12 19:53:45 -07:00
..
blk-uclass.c dm: blk: Use uclass_find_first/next_device() in blk_first/next_device() 2017-12-12 19:53:45 -07:00
blk_legacy.c blk: Remove various places that do flush cache after read 2017-09-15 08:05:10 -04:00
blkcache.c drivers: block: add block device cache 2016-04-01 17:18:27 -04:00
ide.c block: ide: Don't bother to create BLK device if no CDROM inserted 2017-09-10 12:27:40 -04:00
Kconfig dm: mmc: Allow disabling driver model in SPL 2017-08-01 11:58:00 +09:00
Makefile block: Drop the ftide020 driver 2017-09-03 15:30:35 -04:00
sandbox.c blk: dm: make blk_create_device() take a number of block instead of a size 2017-09-11 21:43:58 -06:00
systemace.c dm: systemace: Add driver-mode block-device support 2016-05-17 09:54:43 -06:00