linux/drivers/scsi/ufs
Yaniv Gardi 51047266f7 scsi: ufs: clear fields UTRD, UPIU req and rsp before new transfers
Some of the data structures (like response UPIU) and/or its elements
(unused fields) should be cleared before sending out the respective
command to UFS device.

This change clears the UPIU response data structure for query commands
and NOP command before sending out the command. We also initialize the
PRDT table length to zero which should take care of commands which
doesn't have any data associated with it. We are also clearing the
unused fields in request UPIU for NOP command.

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: Yaniv Gardi <ygardi@codeaurora.org>
Tested-by: Tomas Winkler <tomas.winkler@intel.com>
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 fields 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