From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796152348; b=uPlbVHBqgHBy+XtfGGqD7c2j1w3AFWjx/ca+BKbEjrYjWxf5RE74MRslfi9bIxxBPtlN bYlYerRAnU9tvY5wOZb3O2OsMroScOwElFhHkNOPfVhxhHkOALieda7vaLypcnghUq1LL epcR7A6dI9j5SYDuP413okTzPiXToaWo7Zhv575xs4bg/mBPDpeEQvOf696r787j1hMcR G3HxnnXvO7v98fRlFKBuzcVdZHTy8bFttEPOnwmZjCg81xRBL/4A2i93AgiYnpKtbSi96 1uhk0/1bEf16Sd2juNWDodZJSTlNgdjgashYyVttsxu9eMdCoYAC76RNcg4/1x9S/Kw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796152348; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-Id:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=yVWtmjUDBW0ScVWuTkThrdS29a6HfCjqqYjSBP76u10=; b=wqOZCAQVtfJkktzpY8s00m2jcu9QVNyyVEsAjeLN6dc4jB4Q14+2WRRvv6SM+ytbGVOu eDRSVt49LkL1coeXYqfbyuMaiBPK2+4i0DwGT8iuNM9+tyMCxRFlTIFYJSAkXoCtry7ix EvrY6h6aG/A09W9aOAXIs0fAjDF9Hx2XzQFrxumt+nAkY7jcxEtMNueb05b0tf7AiLgXe yoKjQ89iujidbiAa9p6LuNos3ZpTEOWmJvXfLCPdAfQYuE4Vlelt/lmWXse8Cp0DHbtRV v+F2Gn+isZtRU1tIbwPAwcLK2sc4ohmih/aiTib/MUM6yJ/jphPPo9dcE3uf/jlT9nQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=HoDRW7R1; arc=none smtp.remote-ip=74.125.82.182 Received: from mail-dy1-f182.google.com (mail-dy1-f182.google.com [74.125.82.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5142E606A332 for ; Tue, 1 Dec 2026 19:12:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5142E606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=HoDRW7R1 Received: by mail-dy1-f182.google.com with SMTP id 5a478bee46e88-386c4d2e2ccso12329727eec.0 for ; Tue, 01 Dec 2026 11:12:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796152347; x=1796757147; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=yVWtmjUDBW0ScVWuTkThrdS29a6HfCjqqYjSBP76u10=; b=HoDRW7R1VCYK56rU+xyjI+Zhj8vCQ2CkrREHORGoDfn4dRKgirjWdxgg+fNbDRi4mE VJciq5CcvbBHvTgBE9EiaKl48UsZHciLuyiGBl6NmA4wNAOBElIuTZ5MaCh9+PYXkijB rI6PBI1HcmAFMYq/KPtaR4+fv0NVSe3vDY/fEVdPfdGVtyGz6RmVhZv2dWSMUwDoZLHZ hdp8/pLbj9Qa5wPm3e7L4+8IqR0eCt2dMsS4cxTQe5kDuc3qLiDnHfmFeaRVehGa1/KW zhRG354HzZ0a/fXNpY2uQ12EwWb45layT/s5WV1rwOFVWCxmyEemh2P3La1zcVPPI+a3 7ZXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796152347; x=1796757147; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=yVWtmjUDBW0ScVWuTkThrdS29a6HfCjqqYjSBP76u10=; b=hBz/VgEmvJkXaLRgW5iXbcSJUAby4lL6dfSVHDcFuEsGeNGvCcAou1XzkeI4BK3e5l Aep2JhgJz5At/hEF92gx2XGG4jpRfqUvB9JSxpJ2oZJXLA3aQ14wZXxcmGuv7jD7X0hy 7mamSHz0w1PgRDwQjesSWS0SHSxYYvAwke9kOsd+7EV+Lem8mQ/jWQAf7dlqcjIAu60G SA/f25zL6z3bBjppBuafrR9FSG7XmMAdKe0cnU2epWj7N2+lC1PS/DM7SIsQ19QYy4xp PA1Xsgb//cP9Wu11bz4/P858YecN0GiHqIymJPpgIPnjgmfJCAdYmpeveAPR7NGVyP/b TPyA== X-Forwarded-Encrypted: i=1; AL+hErEuShST4F1MKEAyXQNUN1boz+LJFQeaoQjQccrAxURgJMKgszqOUqoEBHnEFozSnuIOGCq07vrF5sQ=@vger.kernel.org X-Gm-Message-State: APuU4Z8C561ERaB5WSf1tOITCIDghhjnAoKWe1oVVbmgX44ymE2WAjDZ vw0cyHqX/5TdwjLrA6MliKGd55V4NC6UkxZWyWVES6uARaKiusnwGy5q X-Gm-Gg: AZFdTZdIzi8UGtgK5QCP7pg+QRNixeR95eR1DObnMYc5bcKIiHmnZxXFCAHBZJQqdJS UIALTJmj/5wDLmz9ADeN1583WSjB3N6CvomTAQxjKyMMjHTBvIe0NV7VE4moqctTsAE4NKnBfdB fy+hgpi0ZJXDt7VBNCT2WitfrkdJAT/r/drEUMjEpTDV0RXakCU96gRcwR7ErIARXH9QQqk7rue DR6wa66yFU4ZAHyYymhD93n/4PyjZBhWe+LT8tUbAjgXfMO7la4jbYTdmJP81zZ5DXXNtPPfVMs d7S/jIzo4cGvZNymBUAsktpS+Rrm0mlaM4rV7YUyVrU7fB7l5rthLekASZ4BWvheK/oodhEW5qA kNLIGGs1qnZViyFn5Ia9yL+666qIKUbhwdfQivbMf6uVEbm5wFrtjpfsLr7chftpaY3jacRpVJ1 cOuwz3FAQzfo+iVE1qis2dyA607X+0B5Awqs+/NToVDdCpi6fvRRmfeBrZc8cWG2W7xBmXs0IjZ zrqbCODE1PpB9UEyGbJPtVp1kPHbKZyKtfEdXa8Yb+TXRhLyBvMUaWKeACfweQVm9JBVSrHSsey DenK1FWwbZoAq2nlWHwb5FicFtkygeKsJA4dl5uHWtq3jG26EWxx1lkSIjjZZfG34JY0Pw== X-Received: by 2002:a05:7301:6e9a:b0:37e:9a3b:76a3 with SMTP id 5a478bee46e88-3856f14b9edmr36652924eec.11.1796152347307; Tue, 01 Dec 2026 11:12:27 -0800 (PST) Received: from hp-OMEN-Laptop-15-en0xxx.tailcef561.ts.net ([122.172.81.44]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385666e7f59sm117112333eec.6.2026.12.01.11.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 11:12:26 -0800 (PST) From: Jayaraj Devaraj To: Manivannan Sadhasivam , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Lorenzo Pieralisi , Bjorn Helgaas Cc: Paul Walmsley , Greentime Hu , Samuel Holland , Rob Herring , Philipp Zabel , linux-pci@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Jayaraj Devaraj Subject: [PATCH v2] PCI: fu740: Disable pcie_aux clock if reset deassert fails Date: Wed, 2 Dec 2026 00:41:58 +0530 Message-Id: <20261201191158.34811-1-jayarajdmit@gmail.com> X-Mailer: git-send-email 2.34.1 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit fu740_pcie_host_init() enables the pcie_aux clock and then returns without disabling it if reset_control_deassert() fails, leaving the clock enabled on the error path. Disable the clock before returning the error. Fixes: e7e21b3a339b ("PCI: fu740: Add SiFive FU740 PCIe host controller driver") Signed-off-by: Jayaraj Devaraj --- Changes in v2: - Add Fixes: tag. - Rebase on pci/next. drivers/pci/controller/dwc/pcie-fu740.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/dwc/pcie-fu740.c b/drivers/pci/controller/dwc/pcie-fu740.c index 00ec69a09164..2355243da793 100644 --- a/drivers/pci/controller/dwc/pcie-fu740.c +++ b/drivers/pci/controller/dwc/pcie-fu740.c @@ -260,6 +260,7 @@ static int fu740_pcie_host_init(struct dw_pcie_rp *pp) ret = reset_control_deassert(afp->rst); if (ret) { dev_err(dev, "unable to deassert pcie_power_up_rst_n\n"); + clk_disable_unprepare(afp->pcie_aux); return ret; } -- 2.34.1