From patchwork Tue Mar 9 11:55:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 396449 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5321DC433DB for ; Tue, 9 Mar 2021 11:56:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1588B6526C for ; Tue, 9 Mar 2021 11:56:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230341AbhCILz7 (ORCPT ); Tue, 9 Mar 2021 06:55:59 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:12862 "EHLO mail-40131.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbhCILz2 (ORCPT ); Tue, 9 Mar 2021 06:55:28 -0500 Date: Tue, 09 Mar 2021 11:55:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1615290926; bh=brHsaCtOjl6MivQM5JJde4HEiWC8nBnkoSck0wfdshI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=GcC1guE+S6HRGRa9GM8U1AY983YwbssMHCAIU4NjzLIB/jIVr7XM5zmGplEEwdtD7 ZT+bNJ0la6y+cSxkCTicp4wnZ6GNESntpTBOYPeNYjtYK56u5A1CRH6rIQyWp3d8rS tp3BbZuzRRivLrUbe19GNyna6hitJiaBuPC3g1Fk= To: caleb@connolly.tech, Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" From: Caleb Connolly Cc: ejb@linux.ibm.com, stanley.chu@mediatek.com, cang@codeaurora.org, beanhuo@micron.com, jaegeuk@kernel.org, asutoshd@codeaurora.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Nitin Rawat Reply-To: Caleb Connolly Subject: [PATCH v2 3/3] scsi: ufshcd: remove version check Message-ID: <20210309115336.117206-4-caleb@connolly.tech> In-Reply-To: <20210309115336.117206-1-caleb@connolly.tech> References: <20210309115336.117206-1-caleb@connolly.tech> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This check is redundant as all UFS versions are currently supported. Signed-off-by: Nitin Rawat Signed-off-by: Caleb Connolly --- drivers/scsi/ufs/ufshcd.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index a458c248e5ef..a6f317f0dc9b 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -9291,10 +9291,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_VER(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);