diff options
author | Nikita Yushchenko <nikita.yoush@cogentembedded.com> | 2023-11-13 11:51:02 +0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-20 08:34:08 -0500 |
commit | beeb91aa64fde9e35ccfacf03b3d0323b4bf7329 (patch) | |
tree | 0d18019b10e68ec32c01f82c0698f4925791b54c /doc/sphinx/load_config.py | |
parent | d5ff806cb57359ac5084e2af6a96463c9da772ba (diff) |
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>
Diffstat (limited to 'doc/sphinx/load_config.py')
0 files changed, 0 insertions, 0 deletions