Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3541073pxj; Mon, 24 May 2021 09:00:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysaB20r/9PGyS1hYElTd6DvZqHVq7wxZtxn2qSRN6X6ZxKoMpEIswWUNbIoCf8A8PjA6/M X-Received: by 2002:a5d:87c4:: with SMTP id q4mr13529401ios.141.1621872034326; Mon, 24 May 2021 09:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872034; cv=none; d=google.com; s=arc-20160816; b=w2wz0+2fq6RevY/2bHTtSipnrKrKMp3IMSz8O5j1m/bLcJGLwEBu/uaR8sadmeGlq6 vW68Uq5UoLQfHRErSiNvfc0m524EZexTxeotOq7HC1nL0zh3yCGUBhpy1j4y3GpweuqU BVw5NKcoGXGi6O6HzD5g1ca9LjFmH4USWpkE7HTOSELBhfNwR8rNN6YhprFkuo064XUR dJXzNVFSqBJk8yZhz2L/bs2c10rZGNdbvgXETJt4SAeQlg3iHUpnigNfwVj6+ECxpXUf Ac4zYOh3XS4tDUiBWc9GxN/WjRCghc7Fnjsrdhu3+a5Ms+fGkHEmigTHfGxKd1kMzapM GKxQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zW0CVsXUk3KMnbZl43j7QZVM8ISqYbQHuh89aZTZrhU=; b=CFJ1aOAPDGpTHhGSfAFkNAM7pRATI8sdAc7zgQEDNpM73jqMSdBkbUb/K0gFtXAuD1 KUmQg7obtNAEblbmYI1Iw49Q9DXdIsZdMQhEMcFnAcaPQU0SVuqVFJH70GUSE3DbFrMx ZdlgcfDxu/L0JZ+4JzVfA5SuXikfgv+sUIt3F7ZJtlH9om71Y4n9rFO5QGi5eoWY2jLL XVVW//0g5LVxdPEus2lMMrxvHlOB23KlVElaQHSIsjBoL9D1LShAAqZUXp25qIT7bFia i+8XDuVR2lm2NMXGjt09UKTshQ05NcJFe63TW57YSET1CH5bV7x+j4FgHXGoZe7WexNR DelQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kg2VpYLg; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si13647001ilr.160.2021.05.24.09.00.18; Mon, 24 May 2021 09:00:34 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=kg2VpYLg; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235820AbhEXQBM (ORCPT + 99 others); Mon, 24 May 2021 12:01:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:39476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235457AbhEXPzI (ORCPT ); Mon, 24 May 2021 11:55:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A6A6761949; Mon, 24 May 2021 15:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870888; bh=MIh/gq1Au43YtotalzBSSyNVaznfxm6uSJGAnEpcbz4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kg2VpYLgUnhG188Q+dFNzY4s1w5W7juFqPXGwh9zqShaYIOHPAOaEcoTQfxEcnaWI 4/3epPMV1yn6XCQftK+CEdrn6esAvdrUOeDdVGHW6y56PwFsq4kyLFpi0KvC91dKsZ JSu3zWh9SRp9BHfah9WTrKpLbflrT2JXl7Lx0jQU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kangjie Lu , Avri Altman , "Martin K. Petersen" Subject: [PATCH 5.10 079/104] Revert "scsi: ufs: fix a missing check of devm_reset_control_get" Date: Mon, 24 May 2021 17:26:14 +0200 Message-Id: <20210524152335.470852142@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152332.844251980@linuxfoundation.org> References: <20210524152332.844251980@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman commit 4d427b408c4c2ff1676966c72119a3a559f8e39b upstream. This reverts commit 63a06181d7ce169d09843645c50fea1901bc9f0a. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. The original commit is incorrect, it does not properly clean up on the error path, so I'll keep the revert and fix it up properly with a follow-on patch. Cc: Kangjie Lu Cc: Avri Altman Cc: Martin K. Petersen Fixes: 63a06181d7ce ("scsi: ufs: fix a missing check of devm_reset_control_get") Cc: stable Link: https://lore.kernel.org/r/20210503115736.2104747-31-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/ufs/ufs-hisi.c | 4 ---- 1 file changed, 4 deletions(-) --- a/drivers/scsi/ufs/ufs-hisi.c +++ b/drivers/scsi/ufs/ufs-hisi.c @@ -479,10 +479,6 @@ static int ufs_hisi_init_common(struct u ufshcd_set_variant(hba, host); host->rst = devm_reset_control_get(dev, "rst"); - if (IS_ERR(host->rst)) { - dev_err(dev, "%s: failed to get reset control\n", __func__); - return PTR_ERR(host->rst); - } ufs_hisi_set_pm_lvl(hba);