Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3550893pxj; Mon, 24 May 2021 09:10:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2U40Q/pcZJhq5baXxg0lbeCZg8wIQVMFRjJFpEA9lSZDtalRwaqqkaIS24R3TRqbOT2tC X-Received: by 2002:a05:6638:13cc:: with SMTP id i12mr25362104jaj.20.1621872649573; Mon, 24 May 2021 09:10:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872649; cv=none; d=google.com; s=arc-20160816; b=Pi/AZed+IHlx1Tsiaz8w+PHSOYdAdDUfzxTRVsrAoNtu8N20gW4rPs0/aydXtfCZtl Mti7l4Tyb1kvCkGQ+XIMdGhBKxdpnUlFig/Io5ZPXdAZkeh+CAPdt1OY3a8BUmA7+NeS ncS0tSkpZ8CEIeTG1/gzglnsaMAt5PEEfV6Mi5433U2Rg9W82sB/wtYuIuJGe5YXUFOu Gc192+VrS7k3j5D73ttEUrKrheQIW7I5vmFiQt1ktIRS6WK2m3fv3D8P6ehrw83HyqYz KzNG6PipM7aiY4bQvwzK1133ZfNzTX8+bReO48lNmMs6mVLmqp3ZrQ4/9QitlLSWTUv5 ICAA== 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=n45MmoKpoW7F+tOLBX96BsbowzZZWVY5LVShs+3Ukgo=; b=RylqF9DnYPpCRD5durroj1L7M9IMvtzIvENXE0Gio1UmiPyFMRU/KEbnNZ5LCE1pff FJUaDnDZfIbV799A9/IZxaTR5RigjbfuMcb2zEKNrHuBV7xzymGNTIm3jLs6vLBz+2jW fEzKgjP4L5lXOP6h6AGDHSraYt5Bph/wswEnaGGPxEWh3yvARTBfxKEUeC0f4r/vKxLH 8WR+D6jMCOWEZJjzqrYUaBABxvg0W/aPlqawLkhTTfMImWVvXU1Y0Cu0fEAHOtChwU4J rkkhJ/+q6Vt9Aq/qN17KhPY5V3h4mvuvtRzo+G92lrz+Vj9GrDkFY64Jl1+7eenn4X5G fw4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=buLXvhMq; 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 r2si13994820jak.13.2021.05.24.09.10.36; Mon, 24 May 2021 09:10:49 -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=buLXvhMq; 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 S238709AbhEXQKT (ORCPT + 99 others); Mon, 24 May 2021 12:10:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:46588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235788AbhEXQCO (ORCPT ); Mon, 24 May 2021 12:02:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B4E8F6140F; Mon, 24 May 2021 15:47:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621871224; bh=QgX1uQdpz9hIHeIfKigvuNElTGeFfE7w7S9K68xiF8M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=buLXvhMqEv/zlVWySQo6FMtvpaqAUq7vWfNB5642SDIY7M1GBuwQcZLgXbRDO8+2j pqqo+0w815ZQevBDy/NFUbBHEXRJcoWYtd+Sos+1C72OO/yE4U1UT2yuj9auqvuja/ D3PleCJi9KSBrDE2OceYLBwQOAq5nHoApcbsze+k= 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.12 102/127] Revert "scsi: ufs: fix a missing check of devm_reset_control_get" Date: Mon, 24 May 2021 17:26:59 +0200 Message-Id: <20210524152338.303723763@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152334.857620285@linuxfoundation.org> References: <20210524152334.857620285@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 @@ -468,10 +468,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);