Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3533717pxj; Mon, 24 May 2021 08:50:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpVa+oHlV2Q8d1nTT3Xl6sLcrgikle9KGmg6F3RZb1TEHIqXqlupaf45xlRcwzKWLz+m/u X-Received: by 2002:a92:c564:: with SMTP id b4mr16608164ilj.257.1621871440909; Mon, 24 May 2021 08:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621871440; cv=none; d=google.com; s=arc-20160816; b=RRHS3fo5mqpXZf1Yn50F9NsvIBrufFgNThkRv+3gXbi67rgMI8DmxFpfpOjhrEQ6en TmfbuNXSC29qlkYF07AJIrFzHq3o6pL8647++KaQhmOaFp+Go/4txOkJqfiFWQh/1XMo ZKGuNEXYTtZbjChBjWkOKftgbw6Bi7hT5NiFPGPB2mkebpX+5KTcCdXzVmHZtNh71lgH w0r5mjXOQRTqfVB/D2QK6rZJ7UIs8+M2qc7VVysXYQuSWg9bcbLcEzhlNioHA6j1SUHQ FxJYKyBz5SzX6zLcKv/8i3yQaHmNjoqSPPAN9uNjrXA5MksdXthiiykNFaKPinQtikPY MC/A== 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=X0X3+UIuCBM0NLzI+QZbbvb39KdCQl1YFT9LbT1QBjQ=; b=Fo8eWLf8q3+mitxbO4lSUjTAGCfwwFxTmSStawuuyobb17nYGtIi9h0LAlQqfgIj3H 84fhpeXSpkOBA5zjERQ4fJrm1mN1U6oaB59skEjnPzlBrjDkXCsgHCpjgEegvF/GDlWm IcMatLLE/Y0k9UnhObWB+Z8sUx9VQRhJnKVRj7os5oZeppY9Gu1p+OZI3RFJKI/eEiXE jYGrXe2SgDIehMIikhbai9BVf8gbdZ+nSNksQHQSHOGaiYyASURpk0x6Z1mdh08n5MiL EjelBx3pZuK54MtKRZZ+E6JgadalpqdJFqh/ZZ9YVIoCCdpu6/Ihlxbl0VBq3ASpL9lM eteQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F11ckea4; 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 125si14432903iou.87.2021.05.24.08.50.27; Mon, 24 May 2021 08:50:40 -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=F11ckea4; 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 S234289AbhEXPtD (ORCPT + 99 others); Mon, 24 May 2021 11:49:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:56972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234081AbhEXPnF (ORCPT ); Mon, 24 May 2021 11:43:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E14AB613B0; Mon, 24 May 2021 15:35:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870514; bh=3ctF/2MKSV8si6spw2r6srfUaoErhN2JNMcTgTnI9D4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F11ckea44Zm4Y/toUR9pxj8iydQZhL0ko3OaM5GkjE8uZ0tIFfx9COlA2YbGs88gQ DQWI5FvdQiW/Lejq7tTXDEHD0bvP3j+awbVjekfgtVx3iWR6Y7sbPeWCMclAR3gTOF blYjufar5u6C5XVeYHlNi5f2lKl/z3WUPZW5/4xw= 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 4.19 31/49] Revert "scsi: ufs: fix a missing check of devm_reset_control_get" Date: Mon, 24 May 2021 17:25:42 +0200 Message-Id: <20210524152325.390700096@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152324.382084875@linuxfoundation.org> References: <20210524152324.382084875@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 @@ -544,10 +544,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);