-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path0011-scsi-ufs-sysfs-Add-turbo-write-device-descriptor-par.patch
41 lines (36 loc) · 1.57 KB
/
0011-scsi-ufs-sysfs-Add-turbo-write-device-descriptor-par.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From e012c968ed111794beeea65dfe651ab76d6e87c2 Mon Sep 17 00:00:00 2001
From: Avri Altman <avri.altman@wdc.com>
Date: Tue, 21 Aug 2018 17:56:41 +0300
Subject: [PATCH 11/25] scsi: ufs-sysfs: Add turbo-write device descriptor
parameters
Change-Id: I55c37c8e6f7bae40cdc00a170804a1eff0eeab3c
Signed-off-by: Avri Altman <avri.altman@wdc.com>
---
drivers/scsi/ufs/ufs-sysfs.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/scsi/ufs/ufs-sysfs.c b/drivers/scsi/ufs/ufs-sysfs.c
index 7df088b..116b8f7 100644
--- a/drivers/scsi/ufs/ufs-sysfs.c
+++ b/drivers/scsi/ufs/ufs-sysfs.c
@@ -215,6 +215,10 @@ UFS_DEVICE_DESC_PARAM(device_version, _DEV_VER, 2);
UFS_DEVICE_DESC_PARAM(number_of_secure_wpa, _NUM_SEC_WPA, 1);
UFS_DEVICE_DESC_PARAM(psa_max_data_size, _PSA_MAX_DATA, 4);
UFS_DEVICE_DESC_PARAM(psa_state_timeout, _PSA_TMT, 1);
+UFS_DEVICE_DESC_PARAM(extended_features, _EXT_FEATURES, 4);
+UFS_DEVICE_DESC_PARAM(turbo_write_dev_reduction_type, _TW_BUF_USERRDCT, 1);
+UFS_DEVICE_DESC_PARAM(turbo_write_dev_buffer_type, _TW_BUF_TYPE, 1);
+UFS_DEVICE_DESC_PARAM(turbo_write_dev_buffer_size, _TW_BUF_SIZE, 4);
static struct attribute *ufs_sysfs_device_descriptor[] = {
&dev_attr_device_type.attr,
@@ -243,6 +247,10 @@ static struct attribute *ufs_sysfs_device_descriptor[] = {
&dev_attr_number_of_secure_wpa.attr,
&dev_attr_psa_max_data_size.attr,
&dev_attr_psa_state_timeout.attr,
+ &dev_attr_extended_features.attr,
+ &dev_attr_turbo_write_dev_reduction_type.attr,
+ &dev_attr_turbo_write_dev_buffer_type.attr,
+ &dev_attr_turbo_write_dev_buffer_size.attr,
NULL,
};
--
2.7.4