aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorYaniv Gardi <[email protected]>2016-02-01 15:02:37 +0200
committerMartin K. Petersen <[email protected]>2016-02-23 21:27:02 -0500
commit52ac95fe06edd660a6414fd6aa3165c3437ac4be (patch)
tree39a730088bcec18e200c49e2d95d87ba7f87cb45 /drivers/fpga/fpga-mgr.c
parent0c994c03c926d26ce48e6bbabbbe60366044fcae (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. Reviewed-by: Gilad Broner <[email protected]> Reviewed-by: Dolev Raviv <[email protected]> Signed-off-by: Subhash Jadavani <[email protected]> Signed-off-by: Maya Erez <[email protected]> Signed-off-by: Yaniv Gardi <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions