summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaya Erez <merez@codeaurora.org>2014-10-05 23:06:23 +0300
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 10:55:19 -0700
commit32cd93ea15b97d1760305ca84e8feafbf631e657 (patch)
treecdce1cc7723e5760edf3d3a7e3921b7e246116cc /include
parent6b0181c5edfb46f8913e61db79d33ff099cb1ea8 (diff)
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. Change-Id: I9bba619dc884e973a05566e0f975bd8473612644 Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Maya Erez <merez@codeaurora.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions