Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1828513ybl; Thu, 15 Aug 2019 01:50:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPMV1LwmvrSe2RbW5NKgxdSeZldRpa995MPAOeLqmd8Q+HA1aNfG4OuoV+nm3zrjcfpt+Y X-Received: by 2002:a17:902:ca:: with SMTP id a68mr3310106pla.204.1565859042090; Thu, 15 Aug 2019 01:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565859042; cv=none; d=google.com; s=arc-20160816; b=NK3dRP1qaFndM8f6cl/YiK8UJCfUJbPPv1f28/Exn3cMj59NZTkETN4IeFp0/4TIHV 5iI14aL+/e2u+xz2sRjzTnV1H7XUnuuA1fH/7q3qvKjNHYOtJjmat0Uc7a349Y+8H5Xq XXkUk7SYK0SmQ8+qWOWglt33S6WY0TdgvvJuLmftvuGzhfzO8cTFCrRV2NKEk1ktRxqd rOKY1s71SB9IaEvS2B5ZaA+O9Y0kON6yhn33LVTjiiOiVUssdmLDL2yrjiWVqUjYzz2m cCTWWjgZi/fZJ5r2aelIHwsMFOpVeeWZhkqb6jbh3xquTiOBhgbr6qNB02nzJCHcj1wq cnHg== 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=I/Ni6BL75+gWo4R4iZVwEw7NQe8u75RHPx3jC4IfTmw=; b=hHgJ8ab76nMrlcSnN4/lqhOuRPiTGHJYCNU87ixSNNqLkD4epv7Rye/4DgE/sWaBwf oFCl0CbDoOonc4Fs+JxRL9R9FSsp95pHw1081njM/Myz9Td+CCu+uQDk37nxmos8mZtG 53+/g9f+gJ1ALVixwGuAEr7+RPxIIvqsCMAL+UPvlKaxlMw85x7rQFeSYYMmV7mroGdP K9sBKiatXbqR8yddN65XOaYY45GSuHI6cUZMOOLtUMeVsaQPasc0AH3zkiz8RWqqiOw1 Zz0y0jiAbQXBwEd36Lfb7hYRNbjO6CHX2mWroIioWK73pyQtEMraGFbG8qv72y8qiG0y JdqA== 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 w24si1614375pfi.80.2019.08.15.01.50.27; Thu, 15 Aug 2019 01:50:42 -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 S1731098AbfHOIry (ORCPT + 99 others); Thu, 15 Aug 2019 04:47:54 -0400 Received: from inva020.nxp.com ([92.121.34.13]:59514 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730932AbfHOIrx (ORCPT ); Thu, 15 Aug 2019 04:47:53 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E591C1A0468; Thu, 15 Aug 2019 10:47:51 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3CA191A0031; Thu, 15 Aug 2019 10:47:43 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C9E8A4030F; Thu, 15 Aug 2019 16:47:32 +0800 (SGT) From: Xiaowei Bao To: jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, bhelgaas@google.com, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, arnd@arndb.de, gregkh@linuxfoundation.org, minghuan.Lian@nxp.com, mingkai.hu@nxp.com, roy.zang@nxp.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 06/10] PCI: layerscape: Modify the MSIX to the doorbell way Date: Thu, 15 Aug 2019 16:37:12 +0800 Message-Id: <20190815083716.4715-6-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190815083716.4715-1-xiaowei.bao@nxp.com> References: <20190815083716.4715-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 The layerscape platform use the doorbell way to trigger MSIX interrupt in EP mode. Signed-off-by: Xiaowei Bao --- 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 9404ca0..a0cd5ff 100644 --- a/drivers/pci/controller/dwc/pci-layerscape-ep.c +++ b/drivers/pci/controller/dwc/pci-layerscape-ep.c @@ -74,7 +74,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