u-boot/drivers/block
Simon Glass 80778f505c ide: Move ide_init() into probing
At present the code does ide_init() as a separate operation, then calls
device_probe() to copy over the information. We can call ide_init() from
probe just as easily.

The only difference is that using 'ide init' twice will do nothing.
However it already fails to copy over the new data in that case, so the
effect is the same. For now, unbind the block devices and remove the IDE
device, which causes the bus to be probed again. Later patches will fix
this up fully, so that all blk_desc data is copied across.

Since ide_reset() is only called from ide_init(), there is no need to init
the ide_dev_desc[] array. This is already done at the end of ide_init() so
drop this code.

The call to uclass_first_device() is now within the probe() function of
the same device, so does nothing. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
2023-04-27 13:51:06 -04:00
..
blk-uclass.c blk: blkmap: Add basic infrastructure 2023-04-05 10:54:47 -04:00
blk_legacy.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
blkcache.c dm: test: Clear the block cache after running a test 2022-11-07 16:24:30 -07:00
blkmap.c blk: blkmap: Add linear device mapping support 2023-04-05 10:54:47 -04:00
efi-media-uclass.c efi: Add uclass for devices provided by UEFI firmware 2021-12-09 11:43:25 -08:00
efi_blk.c blk: Switch over to using uclass IDs 2022-09-16 11:05:16 -04:00
host-uclass.c dm: sandbox: Create a new HOST uclass 2022-11-07 16:24:30 -07:00
host_dev.c dm: sandbox: Create a block driver 2022-11-07 16:24:30 -07:00
ide.c ide: Move ide_init() into probing 2023-04-27 13:51:06 -04:00
Kconfig blk: blkmap: Add basic infrastructure 2023-04-05 10:54:47 -04:00
Makefile blk: blkmap: Add basic infrastructure 2023-04-05 10:54:47 -04:00
sandbox.c dm: sandbox: Switch over to using the new host uclass 2022-11-07 16:24:30 -07:00
sb_efi_media.c efi: Add uclass for devices provided by UEFI firmware 2021-12-09 11:43:25 -08:00