Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2741353ybd; Thu, 27 Jun 2019 18:48:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyug2f6FJdmYbNNA7jYMMJl2xA7Y7qf6C1+6k/P3lStHys1iahwXM5hWD3URy3NU+1hb74 X-Received: by 2002:a17:902:6848:: with SMTP id f8mr8316306pln.102.1561686526335; Thu, 27 Jun 2019 18:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561686526; cv=none; d=google.com; s=arc-20160816; b=qSFE5kFAFBm5NAX+SGrOuWxyH3NIYkGkNodrtMAB3vRiQOSvBqxsU2Ln/DX2XgDYjA AOg6JnkyHCVJNbrn6KJRdNPXcwP7GAUK0/hU0XoD1yxLF6Y1hlm0d4DlQa78vD3fl0Sz mZqF5bAh8cy+Z1oudQo6M5xLmHaRwOZ+X0qcgL+v+Bl9w3O5nUOY7Oxm9+pMnu5Tv+ao /QQsJxT6Lisj5uwYFdmG+YAU5bMT8PwuwVhI4G4Th7+QKQQv3IvwjTIeAh+sLQrq7T1L A0YWTBS5fnxFBCCce4+4QWzKVUV8j086TO62dihKHQX/5U9eEvR9EONWBao1R5h+F+JC tjGA== 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=W6UQ7enbJu3HAFJYrtmggQZVlfr8Ar2rVPTypEX1ac0=; b=QhbJTn4EE/vrUbMOw4wh//yjI4mrYTc+suMT6oDwm8g9ydgV2OC9S7md/IWfNo0WUD aMFP0i8mV8yp2wa0th6dOaDTK4WvfJKin1aTE+3CDrKG5p8odxbHrk5b+R4GbMSquuBH xjYvjjJ9wfZyoz8fb5kMjKDMtW3+7fVYzoH5UPf4LwDAPy1j/eShM+2y+FffBpuqmPHa de+mO5waTwkmpAmq74M8e+iE07LvkhXIEXWU3FtnwmHqKJUNiz9c4Vhi2UTsI4NamHO4 ZZbIR0lx7YlCWLGG4BV96g6c6sgHxaBFYUG/j0JEbzDZbhs1fbGbVVyv6x95U9PP3/Dv h/BA== 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 p3si583692plo.185.2019.06.27.18.48.30; Thu, 27 Jun 2019 18:48:46 -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 S1726443AbfF1Brs (ORCPT + 99 others); Thu, 27 Jun 2019 21:47:48 -0400 Received: from inva020.nxp.com ([92.121.34.13]:59806 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726292AbfF1Brr (ORCPT ); Thu, 27 Jun 2019 21:47:47 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 003511A103B; Fri, 28 Jun 2019 03:47:45 +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 323131A1045; Fri, 28 Jun 2019 03:47:29 +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 A5E6F402FB; Fri, 28 Jun 2019 09:47:16 +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: [PATCHv3 1/2] PCI: layerscape: Add the bar_fixed_64bit property in EP driver. Date: Fri, 28 Jun 2019 09:38:25 +0800 Message-Id: <20190628013826.4705-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. v3: - No change. 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