From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB6FC31CA4E; Wed, 20 May 2026 16:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779295092; cv=none; b=cNHwLI+uqKVsLC7w33id4vu+Blu5e9pNZYqRuQWWyIvu6Fd37PuhBiq/UVGzYr2SxoQVq2NFEjI351fuStew80DGTbELd3ols1TdXxzzVhptgcuordZAabFubMiGzw604Rx3TKTJe4ovfnJ4Y+mLGFWnRn2KwwEvB+skxJ0zaDo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779295092; c=relaxed/simple; bh=vFuz1ZF0T/AAzTsejShk03BXskDRDqt/RLv37Xos/GE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cxHwcOawk/L4Yvd1K9442g3L/KBtRaEqxMdQzL2Jkyh00jZRykXhIJl9HrcC+6hk0bPC6xfwg4+q5iuscA59gkotiE4DB5zy3dRvdyU++2ZUrDT8MrBpTk+8DjSuoMk4nutBBy11O3RqCrJqj6cOnd9yyS+NTVvD+/YsaySouxQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nAivZcQX; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nAivZcQX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB2971F000E9; Wed, 20 May 2026 16:38:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779295090; bh=ETGhH3lMyRocJ7T50sfFenXUBFxSB+iRE2JRFVt452A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nAivZcQXw9ei1HwVobY+uS8fwawSg2mfKLX9EKvaY89XhvpzVfmFhuU+Z8czcUtnp DMHVBtwn9FlRlLyjA3p2Lg//vZeup5OP+M1p6vTqpP39xw//CNtEgSrd/yLMJ/U8Vw f9fWgWnPAijTu1B0DmZmj5vWLmLwfV68RrAheIwE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, John Madieu , Manivannan Sadhasivam , Claudiu Beznea , Sasha Levin , Lad Prabhakar Subject: [PATCH 7.0 0286/1146] PCI: rzg3s-host: Fix reset handling in probe error path Date: Wed, 20 May 2026 18:08:56 +0200 Message-ID: <20260520162154.690036054@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162148.390695140@linuxfoundation.org> References: <20260520162148.390695140@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: John Madieu [ Upstream commit d284389d4576e7c8040dc4cbb66876e539c6d064 ] Fix incorrect reset_control_bulk_deassert() call in the probe error path. When unwinding from a failed pci_host_probe(), the configuration resets should be asserted to restore the hardware to its initial state, not deasserted again. Fixes: 7ef502fb35b2 ("PCI: Add Renesas RZ/G3S host controller driver") Signed-off-by: John Madieu Signed-off-by: Manivannan Sadhasivam Tested-by: Lad Prabhakar # RZ/V2N EVK Tested-by: Claudiu Beznea Reviewed-by: Claudiu Beznea Link: https://patch.msgid.link/20260306143423.19562-2-john.madieu.xa@bp.renesas.com Signed-off-by: Sasha Levin --- drivers/pci/controller/pcie-rzg3s-host.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pci/controller/pcie-rzg3s-host.c b/drivers/pci/controller/pcie-rzg3s-host.c index 2809112e63171..7a80455aad366 100644 --- a/drivers/pci/controller/pcie-rzg3s-host.c +++ b/drivers/pci/controller/pcie-rzg3s-host.c @@ -1589,8 +1589,7 @@ static int rzg3s_pcie_probe(struct platform_device *pdev) host_probe_teardown: rzg3s_pcie_teardown_irqdomain(host); - reset_control_bulk_deassert(host->data->num_cfg_resets, - host->cfg_resets); + reset_control_bulk_assert(host->data->num_cfg_resets, host->cfg_resets); rpm_put: pm_runtime_put_sync(dev); rpm_disable: -- 2.53.0