scsi: ufs: Add compatibility with 3.1 UFS unit descriptor length
authorBean Huo <beanhuo@micron.com>
Wed, 3 Jun 2020 09:19:59 +0000 (11:19 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Jun 2020 03:17:49 +0000 (23:17 -0400)
commit72fb690eece12a344e6ce5a7c192a304fd37e04e
treeacfd9ba9177d23502d8d99707b7972e853cc30fd
parent7a0bf85b5e1859bfd40a07279d20edd847265702
scsi: ufs: Add compatibility with 3.1 UFS unit descriptor length

For UFS 3.1, the normal unit descriptor is 10 bytes larger than the RPMB
unit. However, both descriptors share the same desc_idn, to cover both unit
descriptors with one length, we choose the normal unit descriptor length by
desc_index.

Link: https://lore.kernel.org/r/20200603091959.27618-6-huobean@gmail.com
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs.h
drivers/scsi/ufs/ufshcd.c