Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp910486lqt; Fri, 7 Jun 2024 02:22:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYBuiX19euDKoG+ciNV7+oWAsiBsUqOvvU9amr1ODHVXfsJycXEtKRAoFxUEd1Qc7WS+vFxL6zWVMdCysA8LTfCni31BAaJ4WG5QSe5g== X-Google-Smtp-Source: AGHT+IHosPYgd6D8taoVZoF2LtxzwIWb2SDRLmfXgsBsxVUKn947ZECNsK/x2gtUQi7Pm0BolGSi X-Received: by 2002:a05:622a:1307:b0:43d:e502:ca3a with SMTP id d75a77b69052e-44041cf74aamr21526021cf.61.1717752152519; Fri, 07 Jun 2024 02:22:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717752152; cv=pass; d=google.com; s=arc-20160816; b=Kh8cK6RQHFqtFA/ZdH7QSCHmHjB+Zno4mNWEKEZUIoi+4/zwaRdYdBgTRv5vp2sbkL EnQ07x32unkZccJJUD6NitNsM1f83XOiTDzvXp4XodoWaKJPKcqWgSVyVeR6a4qlsTXl dJSHMr8fJwzlu2plWdKlF7nkbb+no0BQWgMdrnMihImZMjBT4pM3ijujC+ry7powUvAo uIOUi4VfL/cn05cU8UND/hF7EEmAfLKABo7BjE7zMD4ljFVktUZ54uXn1zVp0/bQjrVl cZ2SrlZ6IXlvzBviszQFXNP/z8AiEpYsi6eU/+JgoRnZIr1UAf2U/wG43sMx4iB/Lo44 03hA== 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=GQcSmlX2muj/bk8NfK1P3CRAdTUe9YIeSMawe3Bpefk=; fh=2PYGzCB71ImiHgFMBJIcQ3BPzjGHbP70iPnzJetQSaA=; b=yTyLfbpozf1nk8VhSslze/zHh7SYTOzq/T+YMECMZR801TkdSB5caCLSLU9vQAq+MH 1919LwlLSQHfDCcUgzTltuaOhD+iF1QzAbRWMSfdYi9ulqie9TOXIcBDzOZwSabd3nbJ J8d2SqmvueLvdxCKcDdvI7kmNbvHx3mwQMjZfuVfT+wXsolwRWvCPtg322QpFYHLsBDQ 3yKxhTwmThH5fa+9FOI47b34GWGMyomBw8MoaJ0WNnymkmvx7nJ5mVAjmiObvhhlF967 dvf6ta/2ejmI+KG8zL2aK78V2/PzfPol9U0qZy1uWPQUiZ93vgtBd/Yy22c48j0fGOK9 esnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N0K3tGbO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205710-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205710-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. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038b38b18si35326261cf.398.2024.06.07.02.22.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 02:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205710-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N0K3tGbO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205710-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205710-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 3EFEB1C229D2 for ; Fri, 7 Jun 2024 09:22:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE5D215B997; Fri, 7 Jun 2024 09:22:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="N0K3tGbO" 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 CA1A6152511; Fri, 7 Jun 2024 09:22:18 +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=1717752139; cv=none; b=H6JlL+dSLEMxqUhTFMCFDvFqOtvxsVAFhR3KSjfzaF/icxVLhI2bn1SAK9p1M141lZmh4KBSUVfDxXAn41cSU/xVViTNIDB97K8cNWbRRq6/KKRAo9MuCLCOvuD/gPeXUYjQFDLqoUzUnwUaJVUW0jtRxSkAERFoPwK7n2+nyH4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717752139; c=relaxed/simple; bh=i87Nc6pwMyOziR5UsyM3i5Jx7xdBUnjr6/ThfnlGrVQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gpF1HqftmrTErJCq4lfmnRKitTUQ63bAZCth6Mmki6UcWzxUcXjg6y9jEuDDyyA5Ty1976A+mO/SER3tidZg9gOpP4PlBhg9e07nCxtT0wwlLISWvtj90hmuorYcixD1l/a4+euEZ0v6UXZvHjwgxfEaX1YAofoxSRhRXesIS9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=N0K3tGbO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEBACC32786; Fri, 7 Jun 2024 09:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717752138; bh=i87Nc6pwMyOziR5UsyM3i5Jx7xdBUnjr6/ThfnlGrVQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N0K3tGbOG/KlWvHC/ZEtFlYqv3Nb5yevw2PW0nItTW6wfEYD+fL0Uytt5tzqebPJm 6a0fESmeZBYbIFmpZtH0PobfZq9VKeCGEI1vUSzLFHWev8XyEzJwd1+9HhGHRem9JC Zc7G23Pk+TCQFw0COQem39+1Mpevm3+HXgWZuDk3l4OoBnUqY4fQ18oa6reGth02CP VDznnmzmbTu9Dt9xxylw9oYAvmQnQY9qCnNzoVVWRPJyQuB7qMEltbnCgOLvfYMJ07 Q0bvzFTTCh3Kork9WnKl9VJWG1EKWOuBEqJXCd1922kkSLk5EpMbndeisk7U5rB5UW a76JBfNY9vaDw== Date: Fri, 7 Jun 2024 11:22:07 +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 Subject: Re: [PATCH 4/5] PCI: qcom-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-4-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-4-4395534520dc@linaro.org> On Thu, Jun 06, 2024 at 12:56:37PM +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. > > Reviewed-by: Niklas Cassel > Signed-off-by: Manivannan Sadhasivam > --- > drivers/pci/controller/dwc/pcie-qcom-ep.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c > index 2324e56c9bfc..02a2a871a91f 100644 > --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c > +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c > @@ -641,7 +641,7 @@ static irqreturn_t qcom_pcie_ep_global_irq_thread(int irq, void *data) > if (FIELD_GET(PARF_INT_ALL_LINK_DOWN, status)) { > dev_dbg(dev, "Received Linkdown event\n"); > pcie_ep->link_status = QCOM_PCIE_EP_LINK_DOWN; > - pci_epc_linkdown(pci->ep.epc); > + dw_pcie_ep_linkdown(&pci->ep); > } else if (FIELD_GET(PARF_INT_ALL_BME, status)) { > dev_dbg(dev, "Received Bus Master Enable event\n"); > pcie_ep->link_status = QCOM_PCIE_EP_LINK_ENABLED; > > -- > 2.25.1 > Like Siddharth reported, this patch is already in pci/next.