linux_dsm_epyc7002/drivers/scsi/ufs
Yaniv Gardi 52ac95fe06 scsi: ufs: clear UTRD, UPIU req and rsp before new transfers
Clear the UFS data structures before sending new request.

The SCSI command is sent to the device within the UFS UPIU request.
As part of the transfer UPIU preparation, the SCSI command is copied
to the UPIU structure according to the SCSI command size.
As different SCSI commands differ in size from each other, we need
to clear the whole SCSI command field to prevent sending uninitialized
data to the device.

The UPIU response doesn't always include the sense data and can differ
in size.
Hence, the UPIU response should also be cleared before the transfer.

Reviewed-by: Gilad Broner <gbroner@codeaurora.org>
Reviewed-by: Dolev Raviv <draviv@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-02-23 21:27:02 -05:00
..
Kconfig scsi: ufs-qcom: update configuration option of SCSI_UFS_QCOM component 2015-11-09 17:46:56 -05:00
Makefile ufs-qcom: add support for Qualcomm Technologies Inc platforms 2015-01-20 19:43:26 +01:00
ufs-qcom.c scsi: ufs-qcom: add QUniPro hardware support and power optimizations 2015-11-09 18:03:55 -05:00
ufs-qcom.h scsi: ufs-qcom: add QUniPro hardware support and power optimizations 2015-11-09 18:03:55 -05:00
ufs.h ufs: add UFS power management support 2014-10-01 13:11:23 +02:00
ufshcd-pci.c SCSI / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM 2014-12-15 15:11:06 +01:00
ufshcd-pltfrm.c scsi: ufs: fix spelling mistake in error message 2015-11-30 20:52:33 -05:00
ufshcd-pltfrm.h scsi: ufs: make the UFS variant a platform device 2015-11-09 18:00:02 -05:00
ufshcd.c scsi: ufs: clear UTRD, UPIU req and rsp before new transfers 2016-02-23 21:27:02 -05:00
ufshcd.h scsi: ufs-qcom: add QUniPro hardware support and power optimizations 2015-11-09 18:03:55 -05:00
ufshci.h scsi: ufs: add quirk to handle broken UFS HCI version 2015-06-02 13:20:14 -07:00
unipro.h ufs: fix TRUE and FALSE re-define build error 2015-06-15 14:40:50 +02:00