scsi: ufs-bsg: Add support for raw upiu in ufs_bsg_request()
authorAvri Altman <avri.altman@wdc.com>
Sun, 7 Oct 2018 14:30:38 +0000 (17:30 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Oct 2018 03:09:47 +0000 (23:09 -0400)
commit95e34bf930eaee51dab23495342b148cd0ee2ba1
tree864f111d2890079f4ae80c020bf67859901346bd
parent5e0a86eed84607432436766e3e1bb37f8318f7b2
scsi: ufs-bsg: Add support for raw upiu in ufs_bsg_request()

Do that for the currently supported UPIUs: query, nop out, and task
management.

We do not support UPIU of type scsi command yet, while we are using the
job's request and reply pointers to hold the payload.  We will look into
it in later patches. We might need to elaborate the raw upiu api for
that.

We also still not supporting uic commands: For first phase, we plan to
use the existing api, and send only uic commands that are already
supported. Anyway, all that will come in the next patch.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <Bart.VanAssche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs_bsg.c