Re: v3: scsi: ufshcd: use a macro for UFS versions

From: Martin K. Petersen
Date: Thu Mar 18 2021 - 23:47:52 EST


On Wed, 10 Mar 2021 15:33:30 +0000, Caleb Connolly wrote:

> When using a device with UFS > 2.1 the error "invalid UFS version" is
> misleadingly printed. There was a patch for this almost a year
> ago to which this solution was suggested.
>
> This series replaces the use of the growing UFSHCI_VERSION_xy macros with
> an inline function to encode a major and minor version into the scheme
> used on devices, that being:
>
> [...]

Applied to 5.13/scsi-queue, thanks!

[1/3] scsi: ufshcd: use a function to calculate versions
https://git.kernel.org/mkp/scsi/c/514288180178
[2/3] scsi: ufs: qcom: use ufshci_version function
https://git.kernel.org/mkp/scsi/c/f065aca20a26
[3/3] scsi: ufshcd: remove version check
https://git.kernel.org/mkp/scsi/c/4f5e51c0ebf0

--
Martin K. Petersen Oracle Linux Engineering