Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp649815ybd; Wed, 26 Jun 2019 04:21:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdnfJ3oBCu6N4gfCSvnzV6zlYztTSoSAYZ2Qu5tevwwx5UsevnpsSXCWnLACf3HtecpSG8 X-Received: by 2002:a63:a046:: with SMTP id u6mr2483751pgn.122.1561548078148; Wed, 26 Jun 2019 04:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561548078; cv=none; d=google.com; s=arc-20160816; b=hZIUA1UeT3jXDx0+OM+sP7T2B3RCNS7KwQt9ghc+2zoL4HgCwdx0pS+pJwUdgu7/KG ucQLZqAZJMwINFqBj66gjkYqi3/70osJWnwaE6KFpxlIyl/VUuMTM98hyBz7fhdGSLyr NXcRnWKhQ4J60qOsLlaJ4ABXDk4C3Csbv5yXyp2NUzE0z8htp7TjPkTrbbx4A9KU2VCm cwIceulqGcYlJSj/397OCsuej65SpZT6CcFJpkJM3GCiWhXrzRcxSObKlQvTlljeBwVg zeem+iYOwnmrLNN8xJCjE9Ij0NXU+e81poue1WSMlS3E7RKIR0GFs4ZlnCj/u1fVuPT0 aTvg== 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=1Wb8wirLkwhvXA2+PjwND28Zym1H8+QIvhyvKm76pNY=; b=aQwaRGccswYmoqpzSPNvz868Kn4kMbWOR9xmW24cz0GWsGQv9/MkNjUkrym2DsBNMT Uq9M2DeEBZNJGjdApRv42BtFbGeXKuxqM0+UmCZfJU48XIDo+CyhG6P45Uwj6nZzFL/W RSdTNACOTFcOCACHUe2xGcF6HdKeKIJsSpxZo85QOtw3xVcjrS4rKnfiBNqI5i3XYaTK fX0Pz1KEpPrUcjhM782lIx5w4aaIOucp0uO7lMX2B7qza8OV6HMj3Zgv/7XsEZQyBpiM wmhTcAQCnw4V2cMIA77oqc1s2mWAk+6+BWmjlgg/LqOyOOLfNhqQjh8uTmI26DXSZ4fg JjmA== 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 y92si3084704plb.318.2019.06.26.04.21.01; Wed, 26 Jun 2019 04:21:18 -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 S1727124AbfFZLUy (ORCPT + 99 others); Wed, 26 Jun 2019 07:20:54 -0400 Received: from inva020.nxp.com ([92.121.34.13]:42418 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726077AbfFZLUx (ORCPT ); Wed, 26 Jun 2019 07:20:53 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id CF2D71A0071; Wed, 26 Jun 2019 13:20: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 87BEC1A09EE; Wed, 26 Jun 2019 13:20:41 +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 F2CB1402D5; Wed, 26 Jun 2019 19:20:28 +0800 (SGT) From: Xiaowei Bao To: 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, kstewart@linuxfoundation.org, pombredanne@nexb.com, shawn.lin@rock-chips.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: [PATCHv2 1/2] PCI: layerscape: Add the bar_fixed_64bit property in EP driver. Date: Wed, 26 Jun 2019 19:11:38 +0800 Message-Id: <20190626111139.32878-1-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.14.1 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. 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