Merge patch series "scsi: ufs: core: Always read the descriptors with max length"
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 30 Dec 2022 21:48:47 +0000 (21:48 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 30 Dec 2022 21:48:47 +0000 (21:48 +0000)
commit2d95c6deb64dfb1496bd202aaffdbdb4b420a196
tree13e9be4b7933879cd67afe55c8aa6699cf0b94ce
parent4a5bd1a928a22c20f77821d0bd9c80849827e292
parent16ed9d312b42180242476d159dd2fab05129029a
Merge patch series "scsi: ufs: core: Always read the descriptors with max length"

Arthur Simchaev <Arthur.Simchaev@wdc.com> says:

Read any descriptor with a maximum size of QUERY_DESC_MAX_SIZE.
According to the spec the device returns the actual size.  Thus can
improve code readability and save CPU cycles.  While at it, clean up
few leftovers around the descriptor size parameter.

Link: https://lore.kernel.org/r/1670763911-8695-1-git-send-email-Arthur.Simchaev@wdc.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufs_bsg.c
drivers/ufs/core/ufshcd.c
drivers/ufs/core/ufshpb.c
include/ufs/ufs.h
include/ufs/ufshcd.h