Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp647457lqt; Thu, 6 Jun 2024 14:08:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWB1jM96NQtT4EqRstWOCedRH+zTKMY1wrezD5YJHDF2VNFQ8OinXahZhRmj0YHPWwczRZeOGDWjsK486y+gjNTvf/88onthNkeQHBaKg== X-Google-Smtp-Source: AGHT+IEzkN/FYLq78BlP2yBQ4Q/StEWs9VM9idH+rqdd+6eInfKYc6rtfJFLU5CW89qXhHLBsPEs X-Received: by 2002:a05:6a21:2724:b0:1af:6a15:6825 with SMTP id adf61e73a8af0-1b2f9c72f91mr734551637.42.1717708125401; Thu, 06 Jun 2024 14:08:45 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2885fd52si626844a12.572.2024.06.06.14.08.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 14:08:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205027-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="GIiSxaZ/"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-205027-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205027-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B920D28760A for ; Thu, 6 Jun 2024 21:07:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75DDF1991A6; Thu, 6 Jun 2024 21:07:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="GIiSxaZ/" Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2053.outbound.protection.outlook.com [40.107.105.53]) (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 4DDB371748; Thu, 6 Jun 2024 21:07:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.53 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717708039; cv=fail; b=DFziioVY/r5dXnmgTnBV4A4nPQbYdufRMEQOkYr1yOim6unHdAc0IBShkyAKD71/+sG2oxeCqEMSPNPgUgJDwDYTcwIARLQazKk8n44Ddao+VWybDZb8SOXFMeuB00VI6dXB3NvMjvIN4Pb6UUU/1KcvXRY7Srydk83e0jodoXg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717708039; c=relaxed/simple; bh=X+a2PvM70/HFTtwC3Aji3HgaGDtpop2gAkj3lQwqQ6Q=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=O9+OIoue7854TwK2v/zpd9Xrmyttcq1+qYPr0O8d8I8CMCHpLtMNHJKWZkG8sx7S4/5/pIava1vpow6SJFXvkikkA81kbIMO6ZeFOsAQYpuQ6agtj/GokNmPBydHzcKndgV61K+/K/knjZZOaHJ+6pMPZz8jR9hKRxxObI4ux1c= 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=GIiSxaZ/; arc=fail smtp.client-ip=40.107.105.53 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=arcselector9901; d=microsoft.com; cv=none; b=lrOPyKH50RJzQJLuAHhhuGVReA07B0NbrSWHFVBWzz0bnWDMdHsC+9/5vBeixf5U3AwD1ALiUCJS9XqZiF/RBE4xRLK/WNM4viFXytlR3vhev/GSmlpNAfzHBQY56ipHwDMADnmxdLIZv5Lp2pz8tncIXKUmMewMfgW7sT4RwPqbkuGps7xJ2S9EUh4LRyGPjr66agyxuC+mNhPZSmPCdVprmhWEWQAi5Av+PchxWfCdShOwSBKPllkPMbqN+vIe2uNIXoHHHKMdljXPE1LTSjqFDrRfIVKwAGGmozRxC4l0U1rZF28T10xh7PJPnZRlXeCY5wuWQgCIW69Mhh2m1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=nwbQ3ZjvE9oY/cydrJJlnyx7xZ82kdvKtneakcCNQXo=; b=V3TbJItF4RmtzbYXxxQ1uor1sIfUOm/tIQsMzovczpjddDRBlVq1TqE8jl0fvBEGsTO/6T5+NqUJUmSY2aMPCCZmWDTvRFlzKjRU5jzn1DlenGV/8Bf6iy1BfW3QkEIwON23t2i7B1n1GrP6l2xgy3dunaEdK13MMMtl94qsbjeRkA3QOE/RODQ0kEV7l6uOrHstRfcpEa7hAo5MPRwO4x9RvrUcA2YJSCGGlpcoxs8mQ8EPJpSVbLnugkresb7aovcbY0k20DsNap20crYhj+fG6g7cYclSLrnuKU2lXPQpFDuBIAw2+aM7T4uhiDEXjGyJvA/K03m04nTJXf9KrQ== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nwbQ3ZjvE9oY/cydrJJlnyx7xZ82kdvKtneakcCNQXo=; b=GIiSxaZ/fiGcZaS/9S7t3e1uDjR50pIHit0ewp/lWo72LSPYhVFK2rVJnpNQoEJnobrhO/C5scFc6Y6dLqXnG2y8XP3S2ty9iZyJ2QywNbXn7Mo2CbUaaSIq1zyny+DFOvUCn85f+5CzReBkwBt7fc0qii+sZdg9u1DkdXw0FD4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA1PR04MB10208.eurprd04.prod.outlook.com (2603:10a6:102:454::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.33; Thu, 6 Jun 2024 21:07:09 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7633.021; Thu, 6 Jun 2024 21:07:09 +0000 Date: Thu, 6 Jun 2024 17:06:55 -0400 From: Frank Li To: Manivannan Sadhasivam Cc: Vignesh Raghavendra , Siddharth Vadapalli , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Richard Zhu , Lucas Stach , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Minghuan Lian , Mingkai Hu , Roy Zang , Jesper Nilsson , Jingoo Han , Srikanth Thokala , Marek Vasut , Yoshihiro Shimoda , Thierry Reding , Jonathan Hunter , Kunihiko Hayashi , Masami Hiramatsu , Kishon Vijay Abraham I , linux-omap@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@axis.com, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-tegra@vger.kernel.org, mhi@lists.linux.dev, Niklas Cassel , Bjorn Helgaas Subject: Re: [PATCH 5/5] PCI: layerscape-ep: Use the generic dw_pcie_ep_linkdown() API to handle Link Down event Message-ID: References: <20240606-pci-deinit-v1-0-4395534520dc@linaro.org> <20240606-pci-deinit-v1-5-4395534520dc@linaro.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240606-pci-deinit-v1-5-4395534520dc@linaro.org> X-ClientProxiedBy: BY3PR10CA0020.namprd10.prod.outlook.com (2603:10b6:a03:255::25) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA1PR04MB10208:EE_ X-MS-Office365-Filtering-Correlation-Id: 118840ea-47cf-43a8-8417-08dc866ca098 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|7416005|52116005|376005|1800799015|38350700005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?JpLrNO/KpRUkJSUFbOB8bm4wY7SVAGrj+tvQf0WNTn4VydF5Jdx5bf+y2Zvz?= =?us-ascii?Q?4Yl8FHduixjncYVMcw7JlYJg71ryUMKRZnLB/80HegoBCDxvn2KDjuQ8KEyY?= =?us-ascii?Q?/n+/HTX1IgTsFZA6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=?us-ascii?Q?aVnFYY7rS7WFYgWkM/5/Q0iFJiLzVY78Xo/McrhzapqmyK/NUTSvNnE0+tLu?= =?us-ascii?Q?IO5irYe11F0g6h6SWhjkqwog36S9zaZ4uhU93rz1T0Anp3P3NpaLJnNhi64o?= =?us-ascii?Q?7VitqhfuVu4BsBb1zFeiS4HNDBnLQ0zSQ+iWwZx5fQOjlCV9aObTjFTmsF/v?= =?us-ascii?Q?zTo/aGHNKb667brxNj/4Gbss1DGbFyjqzsPMtQk9+Ih8WQ9cUZM2tK4YOxq/?= =?us-ascii?Q?HCIR+qbPkO59GPgrewBCw7FGp9VIF0uINXrPHm78kHfFT7JdUTtUPNjg7dzy?= =?us-ascii?Q?8PaJCPI3soAoJQj+zrvNeHovM9DvPM3+NmTQXaGYgFmIwUONgh3ikUaYiP9S?= =?us-ascii?Q?EOdw9q0=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(7416005)(52116005)(376005)(1800799015)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?fX8zybbuRxMqhwZelzXLXGsKE/Pb7DmFUhbXL9WEBRJ6pzHoTJRQZYs1xhCe?= =?us-ascii?Q?rR4y9Wgs/0WLtCSi+I1EoFZcpAQyjbnkhPBEq6o29nbIJpT34b0aPIy6IVsI?= =?us-ascii?Q?4YshyhnfhJ7+zZcIniLdzafNn217y3jdgyUKWm81IE3D6+d0Krqzzi0zqRTh?= =?us-ascii?Q?1auULzHnn7HuD/jZqOPDYPIXUTgH9UtBZ/3eFqNMGk7BopJMXY0xusmyKHzU?= =?us-ascii?Q?M28enIQGfRUn79pEFVsu3ycrIo2tnhJm6/Me1JGPOuHqdSV/t5TC7E8aOLNL?= =?us-asc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09luh+ip3/WT17sx5NSlkbjR+?= =?us-ascii?Q?dy38SLcv00iCN+kYsU4FiJtbbH/q9zNRAeVTm9F076sJOoA4QyUTBm81Otno?= =?us-ascii?Q?mCHocPNDFFbX2zEexjHwDBhwtNapWkQ4xD/kowT5bQlA2wJazhgVTO0YQiJi?= =?us-ascii?Q?TxCrGzhXZl3G+uNLXJsMKEKNB8MQoWJ4A0VtaUbKpQ5bNvO3kG2zEDECKcJm?= =?us-ascii?Q?bnXxlcXB3zUJ5XVzdEMZv7IWwhf58t/IQvBlWSSnuQARr8wLeUaTDXZ4liRZ?= =?us-ascii?Q?mYRfC8xNUDmr48wQQp6YaTQ2rj4X/PjiToor80UgGg0eWxWJPFFvKVnToeOx?= =?us-ascii?Q?VOQF/UMdXQ5hzlcnK+yGzyf9bUVr1O5fnsO7U2wkrT0PVqog046H+eIi0f18?= =?us-ascii?Q?lWIsTJ0snT0x1+QZPLQ=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 118840ea-47cf-43a8-8417-08dc866ca098 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 21:07:09.1165 (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: Svn2v8m8EN0GvgcgqCiLvPxbV0oaTGuc2IgLz0oPQIFOIu1HBvZl3BkBr3Hk4BQo7y80bKK7aX1gl7nn2XdvEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10208 On Thu, Jun 06, 2024 at 12:56:38PM +0530, Manivannan Sadhasivam wrote: > Now that the API is available, let's make use of it. It also handles the > reinitialization of DWC non-sticky registers in addition to sending the > notification to EPF drivers. > > Reported-by: Bjorn Helgaas > Closes: https://lore.kernel.org/linux-pci/20240528195539.GA458945@bhelgaas/ > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Frank Li > --- > drivers/pci/controller/dwc/pci-layerscape-ep.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c b/drivers/pci/controller/dwc/pci-layerscape-ep.c > index 35bb481564c7..a4a800699f89 100644 > --- a/drivers/pci/controller/dwc/pci-layerscape-ep.c > +++ b/drivers/pci/controller/dwc/pci-layerscape-ep.c > @@ -104,7 +104,7 @@ static irqreturn_t ls_pcie_ep_event_handler(int irq, void *dev_id) > dev_dbg(pci->dev, "Link up\n"); > } else if (val & PEX_PF0_PME_MES_DR_LDD) { > dev_dbg(pci->dev, "Link down\n"); > - pci_epc_linkdown(pci->ep.epc); > + dw_pcie_ep_linkdown(&pci->ep); > } else if (val & PEX_PF0_PME_MES_DR_HRD) { > dev_dbg(pci->dev, "Hot reset\n"); > } > > -- > 2.25.1 >