u-boot/drivers/scsi
Nikita Yushchenko beeb91aa64 scsi: set dma direction to NONE for TEST UNIT READY
SCSI device scan code was executing TEST UNIT READY command without
explicitly setting dma direction in struct scsi_cmd to NONE, so command
was passed to driver with dma direction set to DMA_FROM_DEVICE,
inherited from older usage.

With WDC SDINDDH6-64G ufs device, that caused TEST UNIT READY to
return error.

Fix that, by explicitly setting dma direction to NONE for
TEST UNIT READY, and restoring it back DMA_FROM_DEVICE for the
following READ CAPACITY.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Reviewed-by: Marek Vasut <marex@denx.de>
2023-11-20 08:34:08 -05:00
..
Kconfig scsi: typo supporedt 2023-04-01 10:11:50 +02:00
Makefile bootstd: Add a SCSI bootdev 2023-01-23 18:11:40 -05:00
sandbox_scsi.c sandbox: Convert to use driver model for SCSI 2022-09-25 13:59:50 -06:00
scsi-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
scsi.c scsi: set dma direction to NONE for TEST UNIT READY 2023-11-20 08:34:08 -05:00
scsi_bootdev.c bootstd: Use bootdev instead of bootdevice 2023-07-16 23:13:17 +08:00
scsi_emul.c usb: Update the test to cover reading and writing 2022-10-31 11:02:44 -04:00