Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3538360pxj; Mon, 24 May 2021 08:57:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+aFV8vSGjXpus05yhALpgtxoXGtslut2adVVqx/T8QQMCfPa+eFimCeWK30O7LXezrIip X-Received: by 2002:a6b:f815:: with SMTP id o21mr14028030ioh.0.1621871827047; Mon, 24 May 2021 08:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621871827; cv=none; d=google.com; s=arc-20160816; b=tYDbVJp7Usg8pI6SsE1IBETPn33QLeft34p4HsRL9e3WZiusFtIS73RzNgNiZdEMB0 DqU88wk8Cvi5kGd+gudNwsC83imw8844C1/Yr1znD5aTxkxBIDDZefupkOmNc/LBEo5T s6D6ib/CG0RPrCeXcGX3w7B1eqI0oLJfAMYQa2ONqIuNy2oeNbzdzx6zkzcazyfgtbhh dU11yfnGS/5A9BP2TUUbr+vy8rtjaXwXcYrhOPOkeULKMnJtGWnRwKkWQJ2pnVoA6Qao bfq4YPWEfJbRvbEnMEOg5BjbLdpa2kQYOH1J89lpUv7FFlJWv36Ds32L9Za1G1Avy1Ry QjWw== 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=pnMRqthYcf0NWgGQUWbMY19uvz1UfTmvt7NjNyHjQcs=; b=lrslmAKJMM0ymeXUHiOvyDYMh5c921dy2EWE8nHl1IAJaHIrlU95awMm5QaKqjQivK Bzdd/l1nyBeNvGTel+gGiKMphrsgBsrIF49E6fu07/ALn/69lbE9KZjgn9Belo7vmCKO f8OKaQp2/gx/bEy2rx80mHvQT3BqGLQKyNlficiVUWakJUp3OjhryJvhH3ROtfJb2B0r w91JTeZXHSZxIxIm2HagEk5E8+cN+atrLcuk6193eq/FhrlYao2BW+FHLp3X0j3+p2w7 Aqkw6zb200ljFRNli5zE2iybDw7+rLnWv7dNSP9yBm+AoZhi3bscBHU8wv3jZnevgrhj iqMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fHH24Svl; 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 l11si16483108jaj.50.2021.05.24.08.56.53; Mon, 24 May 2021 08:57:07 -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=fHH24Svl; 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 S234433AbhEXP4n (ORCPT + 99 others); Mon, 24 May 2021 11:56:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:34372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234622AbhEXPtQ (ORCPT ); Mon, 24 May 2021 11:49:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A22256141D; Mon, 24 May 2021 15:37:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870669; bh=LIFJVKMq4raM4RUyObKa5TtZwiCP1V7y4bq35qG9TP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fHH24Svl552X2/cjszL+ZuQN47/C7FrGFT0mUvlc7eK2dqEkjFu9w5N2P/uJiTvPE zgGSlilcs02buFuP8iydEaUGOE6i65DtyUyp9OK6DZBbAJs2fqzLP+RA0uZSKzSw00 8dH/A/1bVL72Gy1tOW7X651oOom7uMY+tJWB1TWM= 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.4 50/71] Revert "scsi: ufs: fix a missing check of devm_reset_control_get" Date: Mon, 24 May 2021 17:25:56 +0200 Message-Id: <20210524152328.086523930@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152326.447759938@linuxfoundation.org> References: <20210524152326.447759938@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 @@ -482,10 +482,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);