Skip to content

Commit 9be9db9

Browse files
avri-altman-sndkmartinkpetersen
authored andcommitted
scsi: ufs: Fix geometry descriptor size
Albeit we no longer rely on those hard-coded descriptor sizes, we still use them as our defaults, so better get it right. While adding its sysfs entries, we forgot to update the geometry descriptor size. It is 0x48 according to UFS2.1, and wasn't changed in UFS3.0. [mkp: typo] Fixes: c720c09 (scsi: ufs: sysfs: geometry descriptor) Signed-off-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent c65bfc8 commit 9be9db9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/ufs/ufs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ enum ufs_desc_def_size {
195195
QUERY_DESC_CONFIGURATION_DEF_SIZE = 0x90,
196196
QUERY_DESC_UNIT_DEF_SIZE = 0x23,
197197
QUERY_DESC_INTERCONNECT_DEF_SIZE = 0x06,
198-
QUERY_DESC_GEOMETRY_DEF_SIZE = 0x44,
198+
QUERY_DESC_GEOMETRY_DEF_SIZE = 0x48,
199199
QUERY_DESC_POWER_DEF_SIZE = 0x62,
200200
QUERY_DESC_HEALTH_DEF_SIZE = 0x25,
201201
};

0 commit comments

Comments
 (0)