Skip to content

Enable UFS provisioning via Linux

Evan Green linux-scsi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v17 patches 24 repliesSuperseded

Changes in v2 from the cover letter

- Reworked the interface to show each unit of the config
descriptor as a separate directory, rather than the previous method I had of a file for selecting the unit, and then a common set of files that interacted with whichever unit was selected. I did some kobject magic to accomplish this. I noticed from Greg KH's reply to Sayali's patches [1] that configfs might be the preferred method. Let me know if I should abandon this series in favor of Sayali's, with the possible exception of "Make sysfs attributes writable".
- Squashed documentation changes into their respective code
changes.
- I decided to keep the config descriptor attributes as their
own files, rather than hiding writes behind device descriptor and unit descriptor, as I think that's more future proof and true to the UFS spec.

[1] https://lkml.org/lkml/2018/6/8/210

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4scsi: ufs: Add Configuration Descriptor to sysfsDocumentation/ABI/testing/sysfs-driver-ufs drivers/scsi/ufs/ufs-sysfs.c drivers/scsi/ufs/ufs-sysfs.h +3 more+428 -02 replies
2/4scsi: ufs: Make sysfs attributes writableDocumentation/ABI/testing/sysfs-driver-ufs drivers/scsi/ufs/ufs-sysfs.c+40 -350 replies
3/4scsi: ufs: Refactor descriptor read for writedrivers/scsi/ufs/ufs-sysfs.c drivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+90 -380 replies
4/4scsi: ufs: Enable writing config descriptorDocumentation/ABI/testing/sysfs-driver-ufs drivers/scsi/ufs/ufs-sysfs.c+81 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] Enable UFS provisioning via Linux

This series enables provisioning UFS devices using the existing sysfs interface. This functionality is primarily useful along the assembly line, but might also be useful for end users that receive devices that aren't locked down.

Changes since v1:
- Reworked the interface to show each unit of the config
descriptor as a separate directory, rather than the previous method I had of a file for selecting the unit, and then a common set of files that interacted with whichever unit was selected. I did some kobject magic to accomplish this. I noticed from Greg KH's reply to Sayali's patches [1] that configfs might be the preferred method. Let me know if I should abandon this series in favor of Sayali's, with the possible exception of "Make sysfs attributes writable".
- Squashed documentation changes into their respective code
changes.
- I decided to keep the config descriptor attributes as their
own files, rather than hiding writes behind device descriptor and unit descriptor, as I think that's more future proof and true to the UFS spec.

[1] https://lkml.org/lkml/2018/6/8/210

Evan Green (4):
scsi: ufs: Add Configuration Descriptor to sysfs
scsi: ufs: Make sysfs attributes writable
scsi: ufs: Refactor descriptor read for write
scsi: ufs: Enable writing config descriptor

 Documentation/ABI/testing/sysfs-driver-ufs | 156 ++++++++++--
 drivers/scsi/ufs/ufs-sysfs.c               | 367 +++++++++++++++++++++++++++--
 drivers/scsi/ufs/ufs-sysfs.h               |   1 +
 drivers/scsi/ufs/ufs.h                     |  29 +++
 drivers/scsi/ufs/ufshcd.c                  | 110 ++++++---
 drivers/scsi/ufs/ufshcd.h                  |  30 ++-
 6 files changed, 620 insertions(+), 73 deletions(-)
Signature · 1 line
2.13.5