[v8,phy-next,01/31] PCI: cadence: Preserve all error codes in cdns_plat_pcie_probe()
| Message ID | 20260505100523.1922388-2-vladimir.oltean@nxp.com (mailing list archive) |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-sunxi+bounces-23103-sunxi=pue.re@lists.linux.dev> X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mxe881.netcup.net (Postfix) with ESMTPS id D5DF21C0133 for <noreply@patchwork.local>; Tue, 5 May 2026 12:17:41 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=nxp.com; spf=pass (sender IP is 104.64.211.4) smtp.mailfrom=linux-sunxi+bounces-23103-noreply=patchwork.local@lists.linux.dev smtp.helo=sin.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 104.64.211.4 as permitted sender) client-ip=104.64.211.4; envelope-from=linux-sunxi+bounces-23103-noreply=patchwork.local@lists.linux.dev; helo=sin.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id 042FC307D5EC for <noreply@patchwork.local>; Tue, 5 May 2026 10:06:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A405B33C502; Tue, 5 May 2026 10:05:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="BiDZx0Qh" X-Original-To: linux-sunxi@lists.linux.dev Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011043.outbound.protection.outlook.com [52.101.70.43]) (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 D0B7F3358CA; Tue, 5 May 2026 10:05:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777975540; cv=fail; b=CbX2WU7o7WjK9Z73IGfLeJ3khXNXUwyt5zmbXUNGEqWCe/KpFdI+mKIueox23DLkb7G8bgX1Vtq8nPSCbUD8lOW5vpxqrXbI7EMuGA9u5+jPcZDZmjO9kwLUF+3o7AakHQD40k7u7dtcl8LNNvvmy0Qb3UkIwgIZD2tCgWMFswo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777975540; c=relaxed/simple; bh=52WfOApgZhgq4vYqoLAu19NyYZC18d/0hAWXaH14FtM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=srUllQGBPItGfMT6Py0CdQmBGe4I6Nj+VKPxCju6/qrroHUlIa9fIogx7uTBSm80ckieJPFl5apyH9SHXoKgY94ZJJQ+v1pTYsGBAp3dgyu91taSynP+ij/wwH7bhxrWCZC2Tzeg/mqWDYLI6R3X6pb02jMzPjYjY0nYsMyNmeY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=BiDZx0Qh; arc=fail smtp.client-ip=52.101.70.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Yjaj4QIImRPS+jmYPy115uiJoy0IwI9AosQSvi+2pA4eMrS2sw2sKgsInzsZZ+Y0WHW9PdJrntxHQEpmpa8ptb86KbmU3LuLjJxReG0H6Ft1nKR2OXE3uVDA9T/XbVwfJR9olz6ncpX6FKHizh9kRoI/Yt15QhyjX/AIJOAazuPEbDXkBqbpjHZZ2HJRJ0HsjvZdD7149XZmqn43TGJZEfJAl9RML9xmKw3RLdPcdqIlB51C/poIvVW4PzVNEkP7UrZIi9UP/0q5zc6963f5W5DugV+jpnEp1XBEYU3+hrF2cw3Qn//5Te5eNtb2jjCpmLGFcs+WuikV8z+7PqXXow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fgvdQDNjHvv/zsrLcjoCqZz5W4uogTGw4FSj0SzBEkY=; b=v88fmhrtW149Wx0IAJJB0BgC4eu1UyrjoIKK6oavX4RzfNASrBcksYmEk1NkkJ+lbPtIVfF6Jnpe69LftBFJN3rX2wfVgkDucHkoueva1z5Kr2JRQaKGdRpPPwCNrkRhUOY6ME/I+5/KNxQ+d4gwdYRJTtSelVM5sIu7q7VuSE5Dup9ca1uxcrW7zdSsBbQM9sXwqQxVeprcI7IrkBVQdzzfEqbRjVVS8EDsxTClFFRw83bBwcsKmNPc5mOKilyYqKasaOaMTS+6Miu18qnlutJssjlnz7nO1sRlX+MT86uWfjpYREjdjfx6IIPoDjRjDI+PkWMYXFZNUlVvTYUsPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fgvdQDNjHvv/zsrLcjoCqZz5W4uogTGw4FSj0SzBEkY=; b=BiDZx0QhBm+caMA4ybmL8pGn74os8MS2h0l3VgrZg2o63HmovDa5bz551wx4bfCT+Th/hJsNyKE/wPZaM6KY+YjiudhWH4mC9cztibPg1y18F9LTwbX/BOqa7f0yAyjiZK77FKUc0CO9JZdij/iqK6ndBflPFhqCDa85XeR3XISil5bGVwqb6sVaCh1MagiKXpR0wthCnEW8H4dH/mX2FL7cL6TedHASfcIoU0QI5Y633xDGX9dtUCGOvQh3WRsLss7Y2LM/bqaoUXQ2m2JltWeIggvN2JIzwUfdki/ZOhU4gHeesHfJ80vhYNYhQ5h21cU6BoTcr6X6sgV0URDjEw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM9PR04MB8585.eurprd04.prod.outlook.com (2603:10a6:20b:438::13) by PA1PR04MB11083.eurprd04.prod.outlook.com (2603:10a6:102:484::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9870.25; Tue, 5 May 2026 10:05:33 +0000 Received: from AM9PR04MB8585.eurprd04.prod.outlook.com ([fe80::f010:fca8:7ef:62f4]) by AM9PR04MB8585.eurprd04.prod.outlook.com ([fe80::f010:fca8:7ef:62f4%4]) with mapi id 15.20.9870.023; Tue, 5 May 2026 10:05:33 +0000 From: Vladimir Oltean <vladimir.oltean@nxp.com> To: linux-phy@lists.infradead.org Cc: Vinod Koul <vkoul@kernel.org>, Neil Armstrong <neil.armstrong@linaro.org>, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-can@vger.kernel.org, linux-gpio@vger.kernel.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-scsi@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org, spacemit@lists.linux.dev, UNGLinuxDriver@microchip.com, Bjorn Helgaas <bhelgaas@google.com>, =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= <kwilczynski@kernel.org>, Lorenzo Pieralisi <lpieralisi@kernel.org>, Manikandan K Pillai <mpillai@cadence.com>, Manivannan Sadhasivam <mani@kernel.org>, Rob Herring <robh@kernel.org> Subject: [PATCH v8 phy-next 01/31] PCI: cadence: Preserve all error codes in cdns_plat_pcie_probe() Date: Tue, 5 May 2026 13:04:53 +0300 Message-Id: <20260505100523.1922388-2-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260505100523.1922388-1-vladimir.oltean@nxp.com> References: <20260505100523.1922388-1-vladimir.oltean@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-ClientProxiedBy: AS4P189CA0054.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:659::18) To AM9PR04MB8585.eurprd04.prod.outlook.com (2603:10a6:20b:438::13) Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: <linux-sunxi.lists.linux.dev> List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8585:EE_|PA1PR04MB11083:EE_ X-MS-Office365-Filtering-Correlation-Id: 450bf4aa-a2a4-4339-4d3b-08deaa8dd88b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|19092799006|366016|7416014|22082099003|18002099003|56012099003; X-Microsoft-Antispam-Message-Info: 105wNgbdpicT4f2b89LnMCTcdnd1q3oavkS1xKQO9VaEZzAi2cRP5Q9ftUvmmoJhebuOnPsLvS/m0j/zblucoE1bq+tZGWU3X0u/gqm9nzrUD/GEdtykY45GxR2x+qtk4H6J4BIusB4BgA9esr1z+nwqCdooL1VHCe1uL0nFldcTURUpt3yHXIQ5B9Rj4nqpiP/1xY3GMb8XeBfkg/gBNhqkbNDhFZkBxpQgM1KzIFBhfWyOMqkeHGHGu541mN7z/ZNszkvqgR64o+a1czK782ld8qO4S2qWznt1S6WGKxjgcPZIc51Z7ftQojPvfTlFQyBk1um3M8W6+lmw/bSEd4UPNz12dwkOOmZgenuxMu+6bMZbbNYgOjYRoigo04D2A4yog73uCa7qnmnhd5GEQUMxul5ePtGCBvreldRdF/dvydGWJ73ljQyTVPfA4b35FLjeSZbvIoffeuCDOmz/rbKYa7l3H0sZoO9Y5p9xPpRDxK4UYPUR+z+VyyZEm1YGb0npn1Hd6V/dLQjoPRzL4M6XD0/7xRnai+RQs1JJHZhlVse0eyGpPqSPPZddEKzH5bPQ4lvDIQHdnCp6jt5S2iDJQ5cSvAfoAF4cDak4rq051dOhNsW7Cpi2TEoEC19m3k5JqZLCmhEZ64S9J3CCkg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8585.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(19092799006)(366016)(7416014)(22082099003)(18002099003)(56012099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lHVnwVGbzYZJvp5qB9NzLHGK8+0l?= =?utf-8?q?+10Vkj+2IDjUCJcKJOY3tMmGbaq91bN2K1SAExyZr3lfBmZvmUNKzJIC+TWI3eAGU?= =?utf-8?q?yDHflBp4BJ+IcNNWidlG2eERo0TL5sWmcHwElHUtQtxd40T6w9T/khnYOT6VV5a9K?= =?utf-8?q?rsWTafjrgG2mJ0K09X/rdL/quN4BByHfbJ7+Z31XtEkOVYxEgzcL30FcYyGDcXemz?= =?utf-8?q?yrTtrBEn86ntez3dhrGluGbEkoYSC99qkOlmyHOyxItc1k/el++WiMHrdGl6mpEfT?= =?utf-8?q?NjATr4WM1x5nt1P+a2XyBSYUd0JxmJjykcmaZrCefJdMc9gGmFvsTe1fUSJqxxs7Q?= =?utf-8?q?gnW5NReI9XYUn/9HO6wVmvRBRS/DW1aPEsvo5Z84a2U+dgMIZm55wB69JQ261o4cT?= =?utf-8?q?YRuRERa3wZ1hU4YXeY6gw5Rm2jismUsPrCp/jCjXK5HP+T8MzZPmrQYY1nqb29o2C?= =?utf-8?q?KVFxJ+h/uYtJ/qilMTLHnTHQrGZzR9rvBHTaap8gEFfhJWb5Esd3kGQBXhnAUymDD?= =?utf-8?q?eF1JdbQTC7GTRa7ZL/P2ARbiN4sT4d4Uo72aFwiAfJZqnAYoIGyps7kvana18Vjxa?= =?utf-8?q?7TgKgVydpXC/E6tzIOgOuXBy9SdF34CV/CpZkwn1G8Vq4KI7KDhkiPB3nakUV0pWX?= =?utf-8?q?GvctYIRBCl2Ohsdp54GWOx77pvGaE0ys6LmlS0jYKswDV1TIQjP+GPLL93qoo0Ut0?= =?utf-8?q?NoInT35xsNcTnzR3LiD7V9ZKTl7/QkfP9rklw9TyktG5Fcctu6TPpBfBRmqshqFHu?= =?utf-8?q?PmO/5Uq1NzHZMZ+SfNn3Js6NRRBNGyuvOAdVWEtOyMdLiwtOXBdq7Gvg3BK2uLejQ?= =?utf-8?q?/8dNSuf6bh5So4ILxTU5gpd2ICgxVnMffIP5fWH5iCOFp5n+mGT7UiKHsI33G3Sz7?= =?utf-8?q?P/E0LAiONJ1shDvErgxINOtpxynEUGn12PsQh8KGuF0hvz05M98nuhtOdYpzAlonS?= =?utf-8?q?bBayLwYS/MzWGYOKFd9QldOQYpYI/QfGe7UA6Z9V1dm6IIH3eGNhnOtbDXKU1FsCb?= =?utf-8?q?Iog9geNsoreNYcJIt+9VC3CmBIriehJaOWhu6QaV+qs21deScstyiNijBkPzES0yj?= =?utf-8?q?vEa8D5EMqid2+a2mcVb10E5e//hqBsA0Ob+/PwNis0WXfsdfHvZ/H2nFWh67MQ6Ro?= =?utf-8?q?GQk+IDl7O0edzFSIThBCFqpvqh1P8V/ON16N6v9gQLfsEdQVGilL0I6v1x5SOoetk?= =?utf-8?q?ZyFCTL85bjC09+Sz7l0Uh4agXq7SaSRjQ8+VdlcER2QRfGjDAse9ht7Zl3NsGloJ2?= =?utf-8?q?OOKGKsMRfOV7QjSgla+Z2reRnoARN5yI34OK/e+ANhzUwT6exP1o2zlM6TIy66O0c?= =?utf-8?q?Va95dC0yxHy2+FYVgnH1PbUHTE5xm39ZNsvChna8ETQNZoOImS5+O4OIC8RJ2Up8t?= =?utf-8?q?ao4aa5j3dwFG1JFHrA6EyZJElDo+as0FPP0ulYCFLQVA1IDKVsgYVTgRWq2S23mkK?= =?utf-8?q?44pjg6CsKzW4ciA/AvjiI0AL7W4BGRCGcCQRcI4doAJb2ncEepM6gydRQbaZylGV4?= =?utf-8?q?loPLdcE1BkJocdwFvhPJCBP+9XVg/5PIckLYuL44ujNeKx4NXa8L65SCaFiOx1w8Z?= =?utf-8?q?TJsBMP+Ap2s+2pDaLhxQcgJ/3x2FX7P3XYU/X6hvc+4KfLbRqwmEnpdcYRPkyzNvP?= =?utf-8?q?ZkaBfvTD1FXbZoyFrQ5wzi+8uMmLCe3g=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 450bf4aa-a2a4-4339-4d3b-08deaa8dd88b X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8585.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2026 10:05:33.5661 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: O7I834rn8G2VHkN2OXvP0Zt86b/FZ12h8ktzk+GjOyLVyl5+rBES8wnBDLiT3tpYQOyM99O4pGAtLBy6qUsqkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB11083 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.66 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[104.64.211.4:from]; ARC_REJECT(1.00)[cv is fail on i=2]; MID_CONTAINS_FROM(1.00)[]; MAILLIST(-0.15)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; PRECEDENCE_BULK(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_TWELVE(0.00)[30]; FROM_HAS_DN(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[sashiko.dev:url,sin.lore.kernel.org:rdns,sin.lore.kernel.org:helo,nxp.com:email,nxp.com:dkim,cadence.com:email]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[vladimir.oltean@nxp.com,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-23103-noreply=patchwork.local]; DMARC_POLICY_ALLOW(0.00)[nxp.com,none]; DKIM_TRACE(0.00)[nxp.com:+]; R_SPF_ALLOW(0.00)[+ip4:104.64.211.4:c]; R_DKIM_ALLOW(0.00)[nxp.com:s=selector1]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:63949, ipnet:104.64.192.0/19, country:SG]; FORGED_SENDER_MAILLIST(0.00)[] X-Rspamd-Queue-Id: D5DF21C0133 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= |
| Series |
Split Generic PHY consumer and provider API
|
|
Commit Message
Vladimir Oltean
May 5, 2026, 10:04 a.m. UTC
The blamed commit functionally changed the error path of
cdns_pcie_host_probe(), now cdns_plat_pcie_probe().
When the old code path executed "goto err_get_sync", the PCIe controller
probe function propagated the pm_runtime_get_sync() error code. The new
code doesn't, and returns 0.
Similarly for the "goto err_init" previously triggered by
cdns_pcie_host_init() errors, and now triggered by
cdns_pcie_host_setup() and cdns_pcie_ep_setup() errors. These are not
propagated and will result in probing success, which is incorrect.
Fixes: bd22885aa188 ("PCI: cadence: Refactor driver to use as a core library")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: "Krzysztof Wilczyński" <kwilczynski@kernel.org>
Cc: Lorenzo Pieralisi <lpieralisi@kernel.org>
Cc: Manikandan K Pillai <mpillai@cadence.com>
Cc: Manivannan Sadhasivam <mani@kernel.org>
Cc: Rob Herring <robh@kernel.org>
v7->v8: patch is new, issue was flagged by Sashiko
https://sashiko.dev/#/patchset/20260430110652.558622-1-vladimir.oltean@nxp.com
---
drivers/pci/controller/cadence/pcie-cadence-plat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
[+cc Tom, author of bd22885aa188 in case there's something subtle here] On Tue, May 05, 2026 at 01:04:53PM +0300, Vladimir Oltean wrote: > The blamed commit functionally changed the error path of > cdns_pcie_host_probe(), now cdns_plat_pcie_probe(). > > When the old code path executed "goto err_get_sync", the PCIe controller > probe function propagated the pm_runtime_get_sync() error code. The new > code doesn't, and returns 0. > > Similarly for the "goto err_init" previously triggered by > cdns_pcie_host_init() errors, and now triggered by > cdns_pcie_host_setup() and cdns_pcie_ep_setup() errors. These are not > propagated and will result in probing success, which is incorrect. > > Fixes: bd22885aa188 ("PCI: cadence: Refactor driver to use as a core library") > Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> > --- > Cc: Bjorn Helgaas <bhelgaas@google.com> > Cc: "Krzysztof Wilczyński" <kwilczynski@kernel.org> > Cc: Lorenzo Pieralisi <lpieralisi@kernel.org> > Cc: Manikandan K Pillai <mpillai@cadence.com> > Cc: Manivannan Sadhasivam <mani@kernel.org> > Cc: Rob Herring <robh@kernel.org> I guess this driver is orphaned. Acked-by: Bjorn Helgaas <bhelgaas@google.com> > v7->v8: patch is new, issue was flagged by Sashiko > https://sashiko.dev/#/patchset/20260430110652.558622-1-vladimir.oltean@nxp.com > --- > drivers/pci/controller/cadence/pcie-cadence-plat.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/cadence/pcie-cadence-plat.c b/drivers/pci/controller/cadence/pcie-cadence-plat.c > index b067a3296dd3..8b12a46b5601 100644 > --- a/drivers/pci/controller/cadence/pcie-cadence-plat.c > +++ b/drivers/pci/controller/cadence/pcie-cadence-plat.c > @@ -126,7 +126,7 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev) > while (phy_count--) > device_link_del(cdns_plat_pcie->pcie->link[phy_count]); > > - return 0; > + return ret; This affects cases where pm_runtime_get_sync(), cdns_pcie_host_setup(), or cdns_pcie_ep_setup() return failure. Seems right to me to fail the probe when these fail. Not all users of pm_runtime_get_sync() check for failure, but I think all the other controller drivers that do check return failures from the .probe(). > } > > static void cdns_plat_pcie_shutdown(struct platform_device *pdev) > -- > 2.34.1 >
diff --git a/drivers/pci/controller/cadence/pcie-cadence-plat.c b/drivers/pci/controller/cadence/pcie-cadence-plat.c index b067a3296dd3..8b12a46b5601 100644 --- a/drivers/pci/controller/cadence/pcie-cadence-plat.c +++ b/drivers/pci/controller/cadence/pcie-cadence-plat.c @@ -126,7 +126,7 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev) while (phy_count--) device_link_del(cdns_plat_pcie->pcie->link[phy_count]); - return 0; + return ret; } static void cdns_plat_pcie_shutdown(struct platform_device *pdev)