]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: ufs-bsg: Allow reading descriptors
authorAvri Altman <avri.altman@wdc.com>
Wed, 20 Feb 2019 07:11:14 +0000 (09:11 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Feb 2019 14:00:02 +0000 (09:00 -0500)
commit5c17f87abb1a86eb4d2a108477e56389622cf195
tree05d55c07b59ec5ef06a3ae3e52b3e8ab2f091163
parent4bbbe2421634fe1d1b230006200ad9cdb0e17a9e
scsi: ufs-bsg: Allow reading descriptors

Add this functionality, placing the descriptor being read in the actual
data buffer in the bio.

That is, for both read and write descriptors query upiu, we are using the
job's request_payload.  This in turn, is mapped back in user land to the
applicable sg_io_v4 xferp: dout_xferp for write descriptor, and din_xferp
for read descriptor.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Evan Green <evgreen@chromium.org>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Documentation/scsi/ufs.txt
drivers/scsi/ufs/ufs_bsg.c