Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp489796ybl; Mon, 12 Aug 2019 20:47:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZ4dt0Js+o79urxJcVbxmZauryss/YtHNJZe2IKTwhtI9qhAH2CN0rcHB5kyj2PzxsoVQm X-Received: by 2002:a17:90a:a00d:: with SMTP id q13mr312048pjp.80.1565668056694; Mon, 12 Aug 2019 20:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565668056; cv=none; d=google.com; s=arc-20160816; b=JC+0H1UuA0e3kEeYgjtqGCX+oco/mh5jIgErlnawYZea0GUaTIYgHRje/8cD8VqL9b ZQ2dOf7ZjHyGlL8j75r6QGbekUA4O2ft1GPJLT6bpQZPoPXU5fKoHnXmL15qhDwFBBtS bwUl4mZ2vQ4qFgwbK445tdxfNQB3oD+Z3s+5qxXZF+N2qmbA4j31N8ON1FWwsCqd+g3N qlny/Gg7d69f9CSEj2oegGmozC3qPGHiOlQcc3VCf4BcpWr7VSCclrQ2A7EmvuncPNE+ jZ56MkzJLcF47zHl+qyrv2cy89sxnY9yWaqHnfQQQwoauxOV+cies5L65Tc/bPt7Z/iQ VDsw== 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=tCsEg5q4S5Rg53jLfPljk45qbkK9itR84D89sKz7KcE=; b=uU1CVyF2apvOUa6bJ52taycggli05nEKDT16CBH6AApL74kpbnH7qZyBAOvYryMBwn 8+L52Iv21EBU3Khu8GRZxAhUntn74meZkz2RoMhJjbyLbijkeFS6vPf8p9BErI4GWcvY C3LxcsZLCfsNJ71nuLsLe2jdEb3gC2yIjX+KLCCV0d9oMkDxblvRluZAkce51MUn8fe0 KNch5e8EBzV81LWqvz2LMucHEWVA8HGmP4nfZ5+htTtqp/IqFJLC0vSMlqRPmGe53E2D GEON7ELepkaULK25rh2kSrnz4Q7xpfzI9Jnp3h1i3n0k9O8hsly6SbKAEOQ2pPRyoa76 LF3A== 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 x16si67401053pgi.312.2019.08.12.20.47.20; Mon, 12 Aug 2019 20:47:36 -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 S1726679AbfHMDDP (ORCPT + 99 others); Mon, 12 Aug 2019 23:03:15 -0400 Received: from inva020.nxp.com ([92.121.34.13]:37084 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726483AbfHMDDO (ORCPT ); Mon, 12 Aug 2019 23:03:14 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0D4D21A00B4; Tue, 13 Aug 2019 05:03:13 +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 BA6B91A0048; Tue, 13 Aug 2019 05:03:04 +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 65CF9402A2; Tue, 13 Aug 2019 11:02:54 +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: [PATCHv4 1/2] PCI: layerscape: Add the bar_fixed_64bit property in EP driver. Date: Tue, 13 Aug 2019 10:53:16 +0800 Message-Id: <20190813025317.48290-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, BAR3 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'. drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c b/drivers/pci/controller/dwc/pci-layerscape-ep.c index be61d96..227c33b 100644 --- a/drivers/pci/controller/dwc/pci-layerscape-ep.c +++ b/drivers/pci/controller/dwc/pci-layerscape-ep.c @@ -44,6 +44,7 @@ static int ls_pcie_establish_link(struct dw_pcie *pci) .linkup_notifier = false, .msi_capable = true, .msix_capable = false, + .bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4), }; static const struct pci_epc_features* -- 1.7.1