mbox series

[v2,0/2] scsi: ufs-bsg: Add read descriptor

Message ID 1547135584-23953-1-git-send-email-avri.altman@wdc.com (mailing list archive)
Headers show
Series scsi: ufs-bsg: Add read descriptor | expand

Message

Avri Altman Jan. 10, 2019, 3:53 p.m. UTC
UFS Protocol Information Units (UPIU) are UFS packets that travel
between the host and the device on the UniPro bus. Our previous series
added the capability to send UPIUs to the ufs driver. It does not cover
all the possible UPIU types - we are mainly focused on device management,
provisioning, testing and validation, so it covers UPIUs that falls in
that box.

Our intension is to publish ufs-utils soon - an open source user space
utility that relies on that infrastructure to perform those tasks.
This short series is adding one last functionality needed by ufs-utils
that was somehow left behind - allowing reading descriptors as well.

v1->v2:
Withdraw from the attempt to change the reply buffer, instead place the
descriptor being read in the actual data buffer in the bio.


Avri Altman (2):
  scsi: ufs: Allow reading descriptor via raw upiu
  scsi: ufs-bsg: Allow reading descriptors

 Documentation/scsi/ufs.txt | 11 ++++++++
 drivers/scsi/ufs/ufs_bsg.c | 63 +++++++++++++++++++++++++---------------------
 drivers/scsi/ufs/ufshcd.c  | 20 ++++++++++-----
 3 files changed, 60 insertions(+), 34 deletions(-)