scsi: ufs: core: Remove redundant desc_size variable from hba
authorArthur Simchaev <Arthur.Simchaev@wdc.com>
Sun, 11 Dec 2022 13:05:09 +0000 (15:05 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 30 Dec 2022 21:48:37 +0000 (21:48 +0000)
commitf2a89b071b26b79abbe892ce88c4d674d1f21f63
tree4562e145d889741bd4b9c14671ef6447ceb8fdd1
parent358ae02f47783c1d2a8033e50563ea1a9d176c15
scsi: ufs: core: Remove redundant desc_size variable from hba

Always read the descriptor with QUERY_DESC_MAX_SIZE.  According to the
spec, the device returns the actual size.

Signed-off-by: Arthur Simchaev <Arthur.Simchaev@wdc.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufs_bsg.c
drivers/ufs/core/ufshcd-priv.h
drivers/ufs/core/ufshcd.c
drivers/ufs/core/ufshpb.c
include/ufs/ufs.h
include/ufs/ufshcd.h