Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp223136ybh; Fri, 13 Mar 2020 20:46:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvR0nRQb2B0ndPRZBjRBLnqGhGGADd0LZN4DZfB+vknFwVXhYJPSVSQKdCg89plegHqpfb4 X-Received: by 2002:a05:6830:616:: with SMTP id w22mr13388256oti.215.1584157599353; Fri, 13 Mar 2020 20:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584157599; cv=none; d=google.com; s=arc-20160816; b=qOvef6u+usl7sP8NZQbd25KB/Nlh4QWgtoUmu3swBJmuG1zX975Lh+R4TMvmR87R+H qLAAVdOebCpUXaG3qKVLqrRHk7f5Jb4JzQWKPhhK9JzCVaPvEi4Pkjul1teVAjJDhawJ +O8A77aWfpBr7RBQwtYuByvpf2pxzJvel7t3abRThGyttb7A7k9tqQpmdKm+3nsl49SU +vZ4zLo4GPqc9ufJ6JKnV7j2T19u3TP4Cawg4+85IQV6O4wr0NOWdNOdkKFTXHlokTVw TqY5/tLBiisd18tFq/rs/g2wQ/OaQNHWNgIIkBJyGpdXcbxNHxNdvo+V20Xm4mU9GPLv Vh9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=QXyArxvXDt4PTrHWvxL/Asj89qMRnzHlhCFF67L5waI=; b=WK4AnhiYUU41qNsTL1qm/cyQtacULM6PWwRzTEfKTxOIwhjqHVq7lhu7pGKjmZZblk +dhSRXUuIC7R+3MAEtDx9XPSzEoi7K29nJnjbi4+CrE7h99IAo9abq7th/ENYo5MPnfT pzju3P+V0k5j5ZLgdVMUPGteRl8gdV0TLJ7H6JxwgvF9ris97izAyixXWicw67HiLKEO CA+huh495D9O16gpNcPSnELeCKFuNRU11xpOlfpvZfIieQKZSs+tCvk2EpR37P5yaF2q KYYSgvMdORwjznJYKWcINyBzBNa+rmasZTxbuYhYRqnxgMW8komjXKDsZgtfGw0kGvZq z21w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si6047144otq.105.2020.03.13.20.46.27; Fri, 13 Mar 2020 20:46:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbgCNDo6 (ORCPT + 99 others); Fri, 13 Mar 2020 23:44:58 -0400 Received: from inva021.nxp.com ([92.121.34.21]:59988 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbgCNDox (ORCPT ); Fri, 13 Mar 2020 23:44:53 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 87243200443; Sat, 14 Mar 2020 04:44:51 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C0BFF2014EB; Sat, 14 Mar 2020 04:44:41 +0100 (CET) Received: from titan.ap.freescale.net (titan.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 884CC402E5; Sat, 14 Mar 2020 11:44:29 +0800 (SGT) From: Xiaowei Bao To: Zhiqiang.Hou@nxp.com, Minghuan.Lian@nxp.com, mingkai.hu@nxp.com, bhelgaas@google.com, robh+dt@kernel.org, shawnguo@kernel.org, leoyang.li@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, roy.zang@nxp.com, amurray@thegoodpenguin.co.uk, jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, andrew.murray@arm.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Cc: Xiaowei Bao Subject: [PATCH v6 08/11] PCI: layerscape: Modify the MSIX to the doorbell mode Date: Sat, 14 Mar 2020 11:30:35 +0800 Message-Id: <20200314033038.24844-9-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20200314033038.24844-1-xiaowei.bao@nxp.com> References: <20200314033038.24844-1-xiaowei.bao@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dw_pcie_ep_raise_msix_irq was never called in the exisitng driver before, because the ls1046a platform don't support the MSIX feature and msix_capable was always set to false. Now that add the ls1088a platform with MSIX support, use the doorbell method to support the MSIX feature. Signed-off-by: Xiaowei Bao Reviewed-by: Andrew Murray --- v2: - No change v3: - Modify the commit message make it clearly. v4: - No change v5: - Modify the commit message. v6: - No change. drivers/pci/controller/dwc/pci-layerscape-ep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c b/drivers/pci/controller/dwc/pci-layerscape-ep.c index 9601f9c..bfab1c6 100644 --- a/drivers/pci/controller/dwc/pci-layerscape-ep.c +++ b/drivers/pci/controller/dwc/pci-layerscape-ep.c @@ -79,7 +79,8 @@ static int ls_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no, case PCI_EPC_IRQ_MSI: return dw_pcie_ep_raise_msi_irq(ep, func_no, interrupt_num); case PCI_EPC_IRQ_MSIX: - return dw_pcie_ep_raise_msix_irq(ep, func_no, interrupt_num); + return dw_pcie_ep_raise_msix_irq_doorbell(ep, func_no, + interrupt_num); default: dev_err(pci->dev, "UNKNOWN IRQ type\n"); return -EINVAL; -- 2.9.5