Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2703603pxy; Mon, 3 May 2021 06:17:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPAX+4ILI5uJ4i3eqe4iLV9FiDHhtDSUcT8ElbD3KLZ5SMxvfFntCZBrD3YfiR4JyZS8SR X-Received: by 2002:a63:9d48:: with SMTP id i69mr18184641pgd.297.1620047825785; Mon, 03 May 2021 06:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620047825; cv=none; d=google.com; s=arc-20160816; b=xfn0HaAcQ1CeLCB4F1XOjEp5TQP9F4xnmbOYi3mkQqT6d3LoMLchYyc4p/Q1HXDyQI ZEC+eLZZSs9RwQ4tcN9K7+MqsvfrFR4Q8ecOovzXQViACZhoL3Z3jfHiBXMi/bmKFaKn ZZWH6RWqVKUArQnXntJaJgyvfdtdFQs2Ek5/pXmpnnaZ26nayCFdV6Jq93XemiE0yd1b EaeBniiwHrzUoAhEjfx/ulf0f4zSX0EfGrWaEs49CoECAkrZAwqYbwLiG9AzqT/5vlmR T53g+E79Py92rrLRDKSK7akQJlBEkmuo+h1M20138HOQL1FaIWUTs9STYOIZnBQKV45W EvsQ== 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:date:subject:cc:to:from :dkim-signature; bh=t4yQ2gUyC7VhKsGFEA93IszlGM9bTTEjyTJkyH/l4c8=; b=BmLX0aN9RynFI9zMUZAgWprUzYFVx1f5y17nv15Cbv4G4hJ41pS0ikNunFkeJGAUiy obZh9fWkmiAzrnPGscNV/ANKz3mfN41dGY5XJ9cWclbSJcP4Xm7vQH4Olbhg0lQwNoCW D+yShRaLNC6vL0xAUE99ycz6bA3sR4Acdvhb1OqLjqJdRQCvm6RNas6k9S4+tKRwFZni GP+6eaAJ9E+FdsLVP5XSmPYksx5NN++E5KtXaUQIM7O+C+eLxr9lxtWxiEty7OWg6kj/ 2R/Cq49Pp8HX8Lu5VX1284XD21ozxmK2E2z1x7imKMjn7W1AG747kJsRNWoqrkQdGsXa THHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=d24tbRk3; 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 z12si15105950pln.80.2021.05.03.06.16.52; Mon, 03 May 2021 06:17:05 -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=d24tbRk3; 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 S233770AbhECMA6 (ORCPT + 99 others); Mon, 3 May 2021 08:00:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:34588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233740AbhECMAh (ORCPT ); Mon, 3 May 2021 08:00:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7184F61364; Mon, 3 May 2021 11:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620043184; bh=gXsPEK0CGEE2p019+n+3pa9NlbWquka9rwOtpPVn3hI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d24tbRk3yE5ckW2dAKockgNM7xjcM30onrYBP+xTe9L97annbbO6KeRvx16xc+xeE UcfrCa3F6Sh3zLkNoQQPTrpJ8c6774mSKnNVleAWzprmsx0uyy+KUB65146H6PPp44 s3xL39ARM9bVwZLpINre3fC7KiRR09XtF3242Dcg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , Avri Altman , "Martin K . Petersen" , stable Subject: [PATCH 30/69] Revert "scsi: ufs: fix a missing check of devm_reset_control_get" Date: Mon, 3 May 2021 13:56:57 +0200 Message-Id: <20210503115736.2104747-31-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210503115736.2104747-1-gregkh@linuxfoundation.org> References: <20210503115736.2104747-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/ufs/ufs-hisi.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/scsi/ufs/ufs-hisi.c b/drivers/scsi/ufs/ufs-hisi.c index 0aa58131e791..7d1e07a9d9dd 100644 --- a/drivers/scsi/ufs/ufs-hisi.c +++ b/drivers/scsi/ufs/ufs-hisi.c @@ -468,10 +468,6 @@ static int ufs_hisi_init_common(struct ufs_hba *hba) 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); -- 2.31.1