scsi: ufs: core: Remove version check
authorCaleb Connolly <caleb@connolly.tech>
Wed, 10 Mar 2021 15:34:01 +0000 (15:34 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Mar 2021 04:04:40 +0000 (00:04 -0400)
This check is redundant as all UFS versions are currently supported.

Link: https://lore.kernel.org/r/20210310153215.371227-4-caleb@connolly.tech
Reviewed-by: Bean Huo <beanhuo@micron.com>
Co-developed-by: Nitin Rawat <nitirawa@codeaurora.org>
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
Signed-off-by: Caleb Connolly <caleb@connolly.tech>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c

index ec53c0e..ab9a1b1 100644 (file)
@@ -9310,10 +9310,6 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq)
        /* Get UFS version supported by the controller */
        hba->ufs_version = ufshcd_get_ufs_version(hba);
 
-       if (hba->ufs_version < ufshci_version(1, 0))
-               dev_err(hba->dev, "invalid UFS version 0x%x\n",
-                       hba->ufs_version);
-
        /* Get Interrupt bit mask per version */
        hba->intr_mask = ufshcd_get_intr_mask(hba);