From: Michał Potomski <michalx.potomski@xxxxxxxxx> This patchset introduces UFS ioctl UAPI. It's more readable and flexible than its possible SysFS counterpart. Moreover it will be needed for future features, which will require user setup, but are not satified by SysFS "simple types" rule. We have discussed and monitored UFS UAPI topic for some time now and we came to conclusion, that ioctl API is our best bet as common interface for UFS. Michał Potomski (3): scsi: ufs: Add ioctl() interface with Query Request scsi: ufs: Implement Auto-Hibern8 setup scsi: ufs: Expose Task Management to ioctl() UAPI Szymon Mielczarek (1): scsi: ufs: add ioctl interface to read UIC attributes Documentation/scsi/ufs.txt | 167 +++++++++++++- drivers/scsi/ufs/Kconfig | 12 + drivers/scsi/ufs/Makefile | 5 +- drivers/scsi/ufs/ufs.h | 63 +----- drivers/scsi/ufs/ufshcd-ioctl.c | 483 ++++++++++++++++++++++++++++++++++++++++ drivers/scsi/ufs/ufshcd-ioctl.h | 32 +++ drivers/scsi/ufs/ufshcd.c | 72 ++++-- drivers/scsi/ufs/ufshcd.h | 19 ++ drivers/scsi/ufs/ufshci.h | 9 +- include/scsi/scsi.h | 1 + include/uapi/scsi/Kbuild | 1 + include/uapi/scsi/ufs/Kbuild | 4 + include/uapi/scsi/ufs/ioctl.h | 132 +++++++++++ include/uapi/scsi/ufs/ufs.h | 81 +++++++ include/uapi/scsi/ufs/ufshci.h | 17 ++ 15 files changed, 1028 insertions(+), 70 deletions(-) create mode 100644 drivers/scsi/ufs/ufshcd-ioctl.c create mode 100644 drivers/scsi/ufs/ufshcd-ioctl.h create mode 100644 include/uapi/scsi/ufs/Kbuild create mode 100644 include/uapi/scsi/ufs/ioctl.h create mode 100644 include/uapi/scsi/ufs/ufs.h create mode 100644 include/uapi/scsi/ufs/ufshci.h -- 1.9.1 -------------------------------------------------------------------- Intel Technology Poland sp. z o.o. ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN. Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.