diff options
| author | Subhash Jadavani <subhashj@codeaurora.org> | 2015-10-05 16:22:38 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:00:42 -0700 |
| commit | be361c995c1af8e6766cbc27a46c32489d2f0116 (patch) | |
| tree | 8d3a967a9e6045a876ff5a580071c87357c20e9d /include/uapi/scsi | |
| parent | a2f12c798729973c286a7af79f24be09f87e7d7f (diff) | |
scsi: ufs: allow updating bBootLunEn via ioctl
"bBootLunEn" attribute value decides the active Boot LUN but there could
be a case where userspace may want to change it during image update.
This change allows writing to this parameter.
Change-Id: I6e8d630606d8caf6197ef662003ec1ee646afe81
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include/uapi/scsi')
| -rw-r--r-- | include/uapi/scsi/ufs/ioctl.h | 4 | ||||
| -rw-r--r-- | include/uapi/scsi/ufs/ufs.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/uapi/scsi/ufs/ioctl.h b/include/uapi/scsi/ufs/ioctl.h index f7a671873b40..56b2f4616aa4 100644 --- a/include/uapi/scsi/ufs/ioctl.h +++ b/include/uapi/scsi/ufs/ioctl.h @@ -48,8 +48,8 @@ struct ufs_ioctl_query_data { * placeholder for the start of the data buffer where kernel will copy * the query data (attribute/flag/descriptor) read from the UFS device * Note: - * For Read Attribute you will have to allocate 4 bytes - * For Read Flag you will have to allocate 1 byte + * For Read/Write Attribute you will have to allocate 4 bytes + * For Read/Write Flag you will have to allocate 1 byte */ __u8 buffer[0]; }; diff --git a/include/uapi/scsi/ufs/ufs.h b/include/uapi/scsi/ufs/ufs.h index 4b9a0049639d..cd82b760bd92 100644 --- a/include/uapi/scsi/ufs/ufs.h +++ b/include/uapi/scsi/ufs/ufs.h @@ -38,6 +38,8 @@ enum attr_idn { QUERY_ATTR_IDN_CORR_PRG_BLK_NUM = 0x11, }; +#define QUERY_ATTR_IDN_BOOT_LU_EN_MAX 0x02 + /* Descriptor idn for Query requests */ enum desc_idn { QUERY_DESC_IDN_DEVICE = 0x0, |
