Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp350857pxf; Wed, 10 Mar 2021 07:38:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUPCFkDSctwFEBQsXWYuHKspfkTl274DYdV0tfEF6AD9PPdl2A6udQseSQMCeqpYEf47tD X-Received: by 2002:aa7:d503:: with SMTP id y3mr3981317edq.142.1615390731432; Wed, 10 Mar 2021 07:38:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615390731; cv=none; d=google.com; s=arc-20160816; b=DBlujv5Sffdkj3Mxlzvw1M7vYZpwqqh9ST6MdGTlRrK08ZqbYtHexObpmhid+WHEu3 JQeLQupSFDUujGIKJ7IWqer1o0gcpgenMMalPIBsGrm/uwE2QBIHuoztJhE3c705e1vH VZ0K88Req1K/3LV8sbnaDIOxu7NHXuN97Ee6oIV0jZyyomfAugDYS/BFzGd6rFRqPuOr INNABkxwXAJo+dmcMbEGxXTVfcRFJSIxqU2kzWUTyukBDGXvl9WvYqJCxodSPQNBeqfd 854XRjv3rC9z2QM0Qdl++8nZO6SBWe9rNcNEJG1Z8h6BVVMuodHw6YCg0Aidw36GRQYm FRoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=HiWqG/wJGrdIv4mglu2FebUtS099/QUoKTgH5H0mxEc=; b=OAHCqThluR7MORolidLW1lQWkn4ypCcJf4s/8Kb9TytoIDKOaQ8JYfyKvvvjEGkl8g GQizYkY0Iy2zvjFkPMrQrug82ICGMPGtrJI1wQzkaibs+w+M7EocxcFAqCG+n3n2MTiL +sNQkNp0f5sBX6evsmxyd9IaVH1cXK67XOQP/5YABbGgDM7RwEsQz+G+r1sOIU6rHwz6 QvvT/0VJk0AsdfuQ1YjGh9Ca2qvQXu4oeUekBZHqlfKLipgqiJEBHrNd+9NnW8rWW2s3 Mb6lc63BCUR2ZXY7QMW7dxX+Vixmr8PYz6vtQMBctYB2zR8vizHlQs/ln2/pB1HO7QFc oVIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@connolly.tech header.s=protonmail header.b=qRhsrARG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb13si12281700edb.315.2021.03.10.07.38.29; Wed, 10 Mar 2021 07:38:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@connolly.tech header.s=protonmail header.b=qRhsrARG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233185AbhCJPeZ (ORCPT + 99 others); Wed, 10 Mar 2021 10:34:25 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:49559 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233167AbhCJPeK (ORCPT ); Wed, 10 Mar 2021 10:34:10 -0500 Date: Wed, 10 Mar 2021 15:34:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1615390448; bh=HiWqG/wJGrdIv4mglu2FebUtS099/QUoKTgH5H0mxEc=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=qRhsrARG0iYox7wzXbtdoJLy/JPwyscZEg32fuIrr1WH5ze33jPND3H4Z4QPxhcqM 8mgs4qUTjJY7W0TCeqHNR7sXigk61rntfIyW2ySfPodvx3O0/bBwIwkh8sJsVzjItP 7lm1DkZGgsMcXWhXewx2TV98QKFuHTqNvNHTPl6s= 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 v3 3/3] scsi: ufshcd: remove version check Message-ID: <20210310153215.371227-4-caleb@connolly.tech> In-Reply-To: <20210310153215.371227-1-caleb@connolly.tech> References: <20210310153215.371227-1-caleb@connolly.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 f4d4b885d4df..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 *m= mio_base, unsigned int irq) =09/* Get UFS version supported by the controller */ =09hba->ufs_version =3D ufshcd_get_ufs_version(hba); =20 -=09if (hba->ufs_version < ufshci_version(1, 0)) -=09=09dev_err(hba->dev, "invalid UFS version 0x%x\n", -=09=09=09hba->ufs_version); - =09/* Get Interrupt bit mask per version */ =09hba->intr_mask =3D ufshcd_get_intr_mask(hba); =20 --=20 2.29.2