Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1896499rbb; Tue, 27 Feb 2024 04:58:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVLkACEorV+QDV84LNuSanPYgNLw0REhCNaKtHzp7lfUGfy5YXPZsfV/QiD3Irgd2Uub7ZJVADQbkJss9OKJwzEo8htv0GoUsuvq+BK3Q== X-Google-Smtp-Source: AGHT+IHDrO5ejwK/W3DYSPdom6+9jetTYygJ3BDVKT4fN1vAxIq63Z8eAaEOsJuy3ODU+muLrdHL X-Received: by 2002:a05:6a20:d398:b0:1a0:e849:98e6 with SMTP id iq24-20020a056a20d39800b001a0e84998e6mr1841039pzb.43.1709038680692; Tue, 27 Feb 2024 04:58:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709038680; cv=pass; d=google.com; s=arc-20160816; b=q2hxJ7xdLJwklPYd8SaT9GHkPdMVjRm6jtQ1NMl4G5uHSIFjYBT+crtKVwxyDTLY7U gnBk3PCJI6VrpDWDN2n5u0+79dJa5AkyMy4EMliZabvP9P8F+helrb7LMv12DpjI55ov Fe8TYPPrZ3M3aDpzqhK9MO3AAs6PAT7azer3qIpk+4HQC96yQTGXzjaASEsU1ezBST7A dYywUoNb5nVBYzR3H2jxnDe+8FX/Cq1igaXVDz9hIRw3TrTDF+X9tcn7EQcERuF5IyWV zb187QzicO62F3l1dCCRqd8w4wg5XPt1K0urJFaVY0MaMSLOoAEb54H1n0uL5MG3fJyE Sqtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=r6McJiuv+h7AyXeU5mDp5gY4ceOSplSmKT9ljaBZAeI=; fh=58CAtF43gM7uKootmTlihY+baA6Y1kfEpJHTqGLJlXo=; b=jAqRk+fxy5VC9Qp0DZ7fRxaTI77PXECtSURGfrmNoVsF/m6sY7SmLTZb87XTIx+ifH CYBSmisbJ17hg+tNG60lYiZNOzMOecnUQwaaWnpex8aDm2qW3SOwiPk02Zt1O3tkeaJG pppoBD06CVizOSwIrxS2SiKAXzyAaafabNBwBd//AO7ISRez++MbON5IvYy9un2MEXr3 cOnm+vKs+EhPCHy7JRvTYTMMXXdwWmFhu1MZ9dTitcLt5tHroqDM3rRkRXrtQ3Pt7qmP uDil8GSSLhBWT960cZnfJCh2DWvkdNwDqMWsBq/QOkYUw3DRLoh9liPEycE2LZmrQWpg rHGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=prlmLAjy; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-83238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j5-20020a170902da8500b001dc7a87fcf3si1348580plx.369.2024.02.27.04.58.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 04:58:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=prlmLAjy; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-83238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4F391B284F7 for ; Tue, 27 Feb 2024 12:32:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1CD31386A0; Tue, 27 Feb 2024 12:32:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="prlmLAjy" Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A95654BF7 for ; Tue, 27 Feb 2024 12:32:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037167; cv=none; b=BMwZzAA0x1o5QICqEpXHZs2lHMGaKiikcqNuffUiPRwQTRKgxJdlx56up7mLlN+LdTg8je0aC1xu8MzRTKoIOJO6GZdJ1xP/rXafEfn3wGLkuZuTcvJM5OV/fBrT6TaIoAJLEO66wuD9CJ3yXPqG0hHuSCBji+kfReBHDtvu6mI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037167; c=relaxed/simple; bh=iRPyBsf91aBgQomrNp6NHB0+TRiYOkN18LHNhGZ5bAY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j0HDyiIacJFXv8hZOWaSsHWlV+qTxAGD1rflivpJY1OAB4FlR7LpcKH3igklXXHLuYOfbgdAXFR4LQa6uuPL9UENZRq48R8NDYSbF7c2GYBUxlCQz6sQqoZv7dzZzcM9eTOtKE7T3CcthMVMmzkt84PH/eV+tpdUT8DdMzXeoWo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=prlmLAjy; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6e4670921a4so2283835b3a.0 for ; Tue, 27 Feb 2024 04:32:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709037165; x=1709641965; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=r6McJiuv+h7AyXeU5mDp5gY4ceOSplSmKT9ljaBZAeI=; b=prlmLAjy/C/TRxN6wQ49FPKtqoxLaPqhp40puhqd5vZQZOenFq4l/E2FczruDcb+cF kfqm790rrfsUon1jLX9uorsOlogb7bYx5O2EOOdhBB9pe1/afp1gp5pBAPyGenSc0ar4 9J/CzfAbxcXfrZGKG/czzv9m1RMFeB9n7Iq/Dxs8DFFYenK2NiKNMhDf+qEPuSB057dm omoOnDj+JQ4L8yxBThjzMBGmSAWdkglBcbzmBU/AVZoPGxibtkcZ2F7L7KBgCDpCwEP8 5aZX1FwnzHxBsx+juoesF3hiVfT7b+VgIRDKZ1bHfok2/7cBDK3WNQtEDSddn2KkvHHH 3vPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709037165; x=1709641965; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=r6McJiuv+h7AyXeU5mDp5gY4ceOSplSmKT9ljaBZAeI=; b=SHDTgXrgxiJxsqQNGm2leyJnpk/X2jCyRZUhduZWqNfzQTcjfGLvYU9sdw3OgjtEKa 20w7sLyC72IVr+YaxCogFiHsqJX8TD0T4lCJ+PdS81bHA1psz79VS5iotG1ZjAa3BuDQ wHez7t2ix73qxFh7XyY3UeElowNunIhFnTF+Y+DzD44kbbYQ9N4TH4wIuRrkSL4yV4NI VHk2t+rWuoLnSpdYdHGriJ/qR0GxcQx4TAYi7u+sxdAq9gcH6D2hOgmHlkqGMW/41pMc oA6cn06rsg3+ZvUjGa/Ti+nt0n0z8ldXxg1RN1Em+yIc3jOCC3uT1Xa91zfayU24fBJN uldw== X-Forwarded-Encrypted: i=1; AJvYcCUVNbz4MiiQZUGcKUvDEnOfJZM/PznNosX85i7LVRlThmbTN2sde8R/e0sP+kvvYE9kRR7DQwmhPsYdk5DKMwVzW1JPRd+YuC1KSCm5 X-Gm-Message-State: AOJu0YwCavZp8yHprBDOJhHwAmzEPa/f9slVgc2FeuSjfkp4pqlR/hBt 6N4kRkZGFmjXLxj8/jXdRX321H2Ai+in1nrl4VyM24By2KfvWIloTCRFU/3CYw== X-Received: by 2002:a05:6a21:910c:b0:1a0:cce6:d526 with SMTP id tn12-20020a056a21910c00b001a0cce6d526mr2594508pzb.41.1709037164773; Tue, 27 Feb 2024 04:32:44 -0800 (PST) Received: from thinkpad ([117.213.97.177]) by smtp.gmail.com with ESMTPSA id fn11-20020a056a002fcb00b006e0737f2bafsm5775175pfb.45.2024.02.27.04.32.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 04:32:44 -0800 (PST) Date: Tue, 27 Feb 2024 18:02:30 +0530 From: Manivannan Sadhasivam To: Frank Li Cc: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Marek Vasut , Yoshihiro Shimoda , Thierry Reding , Jonathan Hunter , Kishon Vijay Abraham I , Vidya Sagar , Vignesh Raghavendra , Richard Zhu , Lucas Stach , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Minghuan Lian , Mingkai Hu , Roy Zang , Kunihiko Hayashi , Masami Hiramatsu , Kishon Vijay Abraham I , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Niklas Cassel Subject: Re: [PATCH v8 09/10] PCI: qcom-ep: Use the generic dw_pcie_ep_linkdown() API to handle LINK_DOWN event Message-ID: <20240227123230.GP2587@thinkpad> References: <20240224-pci-dbi-rework-v8-0-64c7fd0cfe64@linaro.org> <20240224-pci-dbi-rework-v8-9-64c7fd0cfe64@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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Feb 26, 2024 at 12:20:41PM -0500, Frank Li wrote: > On Sat, Feb 24, 2024 at 12:24:15PM +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. > > > > 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 2fb8c15e7a91..4e45bc4bca45 100644 > > --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c > > +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c > > @@ -640,7 +640,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); > > Suppose pci_epc_linkdown() will call dw_pcie_ep_linkdown() ? > why need direct call dw_pcie_ep_linkdown() here? > I've already justified this in the commit message. Here is the excerpt: "It also handles the reinitialization of DWC non-sticky registers in addition to sending the notification to EPF drivers." - Mani -- மணிவண்ணன் சதாசிவம்