Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp636804ybl; Mon, 12 Aug 2019 23:50:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmxkVd/jZymWw/Y+ryMDmY56AUiQOuEA/zuX3s7hD4jIh1dh4ft0SDx7omWFKh/MnGI3QA X-Received: by 2002:a17:902:b944:: with SMTP id h4mr12182109pls.39.1565679005927; Mon, 12 Aug 2019 23:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565679005; cv=none; d=google.com; s=arc-20160816; b=bUTd6tgmx1LYle67TO1jRzLDHWoj8S3evTRD//B8k4XqB8RjEn76rIgWbjxNhZVSAL hCenkMG+qR4xQdoV6eM4UTEnotf7u7GIEFp63YarHo80WLsaclxv7xMKDmSZPSV2CdAv loNiG4rUN8aTI9HKPev5wN53qKIrOC4yLEi5ldLM1R1MsOOB4foGBJTkYJU+4ZP7Ha4Z 93OkMONEkjuJM3lSxPhwpqaoHXM1sPur58HwnBWYrLgCVGD4lJ+OLTjMMqmfEfOA2hYr AsR+C2JlkM3+plDS4Zth72FE6hKBmJ10HxdxB6YGMATqVtTrdr/SOMYMnW4tEWtJ7T6S oN2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Iphfnu7Y2QL5nuD6uMdi4WyLkapSfJhNs8bcNzL7vCo=; b=qoFPeZLOGJLI24lcxgnEHbyIeve1Tf/FZIRtNeSh04/BN8LskJCkgueI1Vhx6tg0yG g7AtXpOlbzJEIOe5QM3+Bqxpscv8k027R2YQ1aP4NQuq+ujxfZ7NgACySdaKfzu4p0jt ehEJuliUPLqueVVk61VP0OxOaZBWOiT4dPnuIcIYrdYdCtvsAxX6IFuzJziqpNEtTWGo RlA8f3e4gIgVzryVgCQHvZ8Xu5FtXwTBKsfGjUqfZV0q5stVl3z9AVk785ibia1dsr3P z/rQMcjuLcND9winaiaFRFhzeyWmeTMWaYe0vIbcBZcOrzXKtKbcdRk1VJIxraz+bp1n CoQw== 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 n18si59604691plp.215.2019.08.12.23.49.49; Mon, 12 Aug 2019 23:50:05 -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 S1727232AbfHMGio (ORCPT + 99 others); Tue, 13 Aug 2019 02:38:44 -0400 Received: from inva021.nxp.com ([92.121.34.21]:52700 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbfHMGio (ORCPT ); Tue, 13 Aug 2019 02:38:44 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id B561D20074D; Tue, 13 Aug 2019 08:38:41 +0200 (CEST) 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 6CDF220075A; Tue, 13 Aug 2019 08:38:33 +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 16C55402EC; Tue, 13 Aug 2019 14:38:23 +0800 (SGT) From: Xiaowei Bao To: lorenzo.pieralisi@arm.com, bhelgaas@google.com, minghuan.Lian@nxp.com, mingkai.hu@nxp.com, roy.zang@nxp.com, l.stach@pengutronix.de, kishon@ti.com, tpiepho@impinj.com, leonard.crestez@nxp.com, andrew.smirnov@gmail.com, yue.wang@amlogic.com, hayashi.kunihiko@socionext.com, dwmw@amazon.co.uk, jonnyc@amazon.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Cc: Xiaowei Bao Subject: [PATCHv5 1/2] PCI: layerscape: Add the bar_fixed_64bit property in EP driver. Date: Tue, 13 Aug 2019 14:28:39 +0800 Message-Id: <20190813062840.2733-1-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.9.5 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 PCIe controller of layerscape just have 4 BARs, BAR0 and BAR1 is 32bit, BAR2 and BAR4 is 64bit, this is determined by hardware, so set the bar_fixed_64bit with 0x14. Signed-off-by: Xiaowei Bao --- v2: - Replace value 0x14 with a macro. v3: - No change. v4: - send the patch again with '--to'. v5: - fix the commit message. drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c b/drivers/pci/controller/dwc/pci-layerscape-ep.c index be61d96..ca9aa45 100644 --- a/drivers/pci/controller/dwc/pci-layerscape-ep.c +++ b/drivers/pci/controller/dwc/pci-layerscape-ep.c @@ -44,6 +44,7 @@ static const struct pci_epc_features ls_pcie_epc_features = { .linkup_notifier = false, .msi_capable = true, .msix_capable = false, + .bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4), }; static const struct pci_epc_features* -- 2.9.5