]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: core: Use a function to calculate versions
authorCaleb Connolly <caleb@connolly.tech>
Wed, 10 Mar 2021 15:33:42 +0000 (15:33 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Mar 2021 04:04:40 +0000 (00:04 -0400)
commitdd7627fe468165ba7f0d98b966aa42f2ccf96fef
tree46941ad1cb14ed0138308c8fe35e1dc8255e9aa9
parent4d89bb10f574a0532442fad69e6f05759b6768b5
scsi: ufs: core: Use a function to calculate versions

Update the driver to use a function for referencing the UFS version.  This
replaces the UFSHCI_VERSION_xy macros, and supports comparisons where they
did not.

Link: https://lore.kernel.org/r/20210310153215.371227-2-caleb@connolly.tech
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Caleb Connolly <caleb@connolly.tech>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshci.h