u-boot/drivers/block
Simon Glass 646deed40b ide: Correct use of ATAPI
The use of atapi_read() was incorrect dropped. Fix this so that it will
be used when needed. Use a udevice for the first argument of atapi_read()
so it is consistent with ide_read().

This requires much of the ATAPI code to be brought out from behind the
existing #ifdef. It will still be removed by the compiler if it is not
needed.

Add an atapi flag to struct blk_desc so the information can be retained.

Fixes: 145df842b4 ("dm: ide: Add support for driver-model block devices")
Fixes: d0075059e4 ("ide: Drop non-DM code for BLK")
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>

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: Correct use of ATAPI 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