Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp910805lqt; Fri, 7 Jun 2024 02:23:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/qFqvzDOQ/5yfyVgXCMt1fc/sSIJNQEM7fpT1pUaQcfH9bQhYqfrlu/ity6vqxxItkI5lnoT7l1xv7/lYgZnPHlbuVjWvltoIHJwUQg== X-Google-Smtp-Source: AGHT+IEfDdelYcayG4EhU/rjI2ugu0yECauJLEGM5VGWFQjcUjkNf2f4Wj9iQLaSOcWAYLuxljh6 X-Received: by 2002:a81:c803:0:b0:61a:fefd:ee26 with SMTP id 00721157ae682-62cd5571c16mr19458027b3.1.1717752195985; Fri, 07 Jun 2024 02:23:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717752195; cv=pass; d=google.com; s=arc-20160816; b=DQbsT6ylhGc/ye8ufKlp5eAqH06wDfz0ryqSFzfNkA4PgUVmFjh33qvR4pkPtHuPMR BEp+0LAWQy548dkciayHs/hJdw3pNvvpDKSMfCfowWa7kVTe6Ngx33QPk9yFmFYwNa5m wwkt++mjBO+7AvOvwDwTROoWHG8zEKjpwCL6Rn3XEsvc3fkSUbqZQhfYe7qS7q9icu4z Iysa5izmkfsINfvYbMDkDth1hBNAwh0vDiOC/luZdBCxXuZ99QVy6tc8IXCLlb03Flg9 6RExgbjno59ByIBo8M1+RrufCXfGJzerLg03xvp34UBzXWF+f0e0tFpio+wer2fTw+e3 wU4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Hbnw6ea11xd3DQ2RjaCCDN5wEbN+zTRn0Ae2KaADci8=; fh=MuBPNdEb2jTvl1qWrwKqC+8MOmOvDPF7MrcgmgbCn80=; b=vWFIMXhmvKvQ1zZ2mnlebf90VSIea4DdeofEffsUDd6Z41aUuXFoiHlgR1uGEYXaDZ 8TnMgSXBWK5vEPbiJmnUpSIdo16kw7A1WawaOAFUczAGTeAWnZalYiAvzIUmxQrIH7z5 FGZsAyM1g9YCeNJLcdGroihpe1qvpDMQ854I6DpFnGH0hzhjh7xC9cMp11tvvGc28Sy2 GJztJ15KVnt5gfIR7ONpqOtMxUwPlmLkz9BWCF8nKoSznguqnqbouU7ILWCLgrbgGT9E rat7SXRooJgP/etPk/dFdJ8gXfQrRGteUtQcSpL3/N9md/0JL2TR57aXppEmRoMvXeb/ D6Og==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Wd/bO7uQ"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b3d41fsi35723421cf.466.2024.06.07.02.23.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 02:23:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Wd/bO7uQ"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 586EF1C21D6F for ; Fri, 7 Jun 2024 09:23:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B439E15CD6D; Fri, 7 Jun 2024 09:22:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Wd/bO7uQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C042615B98E; Fri, 7 Jun 2024 09:22:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717752159; cv=none; b=Y6mQbmGWjDq+ViJX47e7I3lp+hS+CoqzcLq64w9IPivFRdJ2xiSkm2eYkeh4ICaowmgBReebqchUh9lIgPaRnQybOhjBbHOddniX6XXspCnfCjm1FZK8KjBc8yddgFCgvBPCFd5U626WpBbEiHBgFrt+loOgsvgraX/UsOsR83M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717752159; c=relaxed/simple; bh=D7lvHQq+tZorV1+pcjIY5sjD02wKITLOPmyvKO904yI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DEmr59UCRMwM5ePKc3HTOg5MFxGv6ljg3/EDfPyFQnrhRYWcpGKhLY1Al+cZstmUdelZbUKpPE6u4aiHg5H+1bJxfqPHAE5mJAhGUFYUG7EOBHAUV+s6J9wR6pHw0IXFQ0MPzYXl4w6hVS2idUsjT4vkViGRzMS9U9AmsfUTJJY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Wd/bO7uQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F2B2C4AF07; Fri, 7 Jun 2024 09:22:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717752159; bh=D7lvHQq+tZorV1+pcjIY5sjD02wKITLOPmyvKO904yI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wd/bO7uQuUWMF88y073MEYdcJkxc/T9boJd1q64JFfETO37/4iGwJryBTybOc9dBY DY4Mx3hhpcqNSOELqeCujEVhpgMhJ5CU3Zz20fZ6Uks+q9Iwu1cuA5Ee9f/IDfJUP/ 7A4BQ2Pv9OFhpgJ8KT5sHHNz3Dk0rvg9rKg6AkOTs6isY+Zqf24Xlvd9geCjfS3IXS 95TqGUH3d2BNJFSN9ou8DWOSXJTdrplMPW6d4/jiOi7Q3GXaqc9Pkdx3VUGF9POD/G l3vf8BeR4RCcbq+dfKMEEdjdgOr4koutz4uJh4BZVuxoN3Jt+PxxzxdXkCLhy+F/SE /WaTgN5oouNKw== Date: Fri, 7 Jun 2024 11:22:29 +0200 From: Niklas Cassel 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, 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240606-pci-deinit-v1-5-4395534520dc@linaro.org> 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 > --- > 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 > Reviewed-by: Niklas Cassel