[PATCH v1 0/3] use UFS device indicated maximum LU number

From: Bean Huo
Date: Fri Jan 10 2020 - 13:36:42 EST


According to Jedec standard UFS 3.0 and UFS 2.1 Spec, Maximum
number of logical units supported by the UFS device is specified
by parameter bMaxNumberLU in Geometry Descriptor. This series
of patches is to delete macro definition UFS_UPIU_MAX_GENERAL_LUN,
and switch to use indicated value in descriptor instead.


Bean Huo (3):
scsi: ufs: add max_lu_supported in struct ufs_dev_info
scsi: ufs: initialize max_lu_supported while booting
scsi: ufs: use UFS device indicated maximum LU number

drivers/scsi/ufs/ufs-sysfs.c | 2 +-
drivers/scsi/ufs/ufs.h | 14 +++++++---
drivers/scsi/ufs/ufshcd.c | 51 +++++++++++++++++++++++++++++++++---
3 files changed, 60 insertions(+), 7 deletions(-)

--
2.17.1