[PATCH] scsi: set dma direction to NONE for TEST UNIT READY
Marek Vasut
marek.vasut at mailbox.org
Sun Nov 19 21:43:00 CET 2023
On 11/13/23 06:51, Nikita Yushchenko wrote:
> 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 at cogentembedded.com>
Reviewed-by: Marek Vasut <marex at denx.de>
Tom, would be likely good to pick into this release.
More information about the U-Boot
mailing list