Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp214446ybl; Tue, 13 Aug 2019 19:14:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcszA0mVlJq0lTEwfa/HmCwKi6BqUpOCNI5SyQbj4/xY53oXQsCV0R5SylzjQJUHoK+Ihm X-Received: by 2002:a63:c006:: with SMTP id h6mr36463268pgg.290.1565748894744; Tue, 13 Aug 2019 19:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565748894; cv=none; d=google.com; s=arc-20160816; b=U2gjBB5bKomx47hqSVpLpcm4A6ss2SQU4/mcITD+pxS0M34xzn6uCjJsFy6ibbWNyd 3TsaD/YGkSW6JzUGI5H9/uUS3bYkX95B83nCy4sThBuSw4eoNN8KEzpqmAh/YI7k6fJ2 AwtEVQ2HavEY9pT4bJ1lWGv1jGLmMCp5VwFVzFODmVdD2KoahvTZ/xfvMdYSl1wbJqkw ALFXYm/XJlH7iQltdIxDhmuBZJOdzUGKkQA3t5eMo3Bz7jhkLVO5MnC98+BWVnNMrQdy dxaW+hDwdKQ+RXNbwNcRqciyFBzd8oaghYU6LALANMyyIBdwlcyCJSLYfPVMKIGvWFs4 AEVQ== 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=GdXsSf55UZPP/Xc5oM1ItV7vVuWb+iPQxZvbBw2OwSc=; b=jDRw82lEtQ1ErtWQgferIJVhFxDXxqvKnT6on0mGTmXeG7Adr0/OsgauKJhhZ2vkKz xcHkkp/h00xxg9/A//2iwklzTTF+hozULu8aBmBmi5hxgQeo2q+spA0R1jsvGU46DH// oMyz1gsfpmzGCNg6p3G/qZhxqx2UXZNEt/QR53XcQApK8xY4lwGr1pxKgGaL7O8rpRvU 9YduKeV/vop+FBjE34TKfMqxAqJddRkfXOiPGJjdJvzaB430ocaNXVTrdHNjhQGFR19m Xg8vS+Q0Uwigho3J4gK7ToMAvL/zjSVYC+DhBenrLi7IbLHY4D3DtleuVRnDnm5vZDzV WHjg== 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 67si70582406pfv.74.2019.08.13.19.14.39; Tue, 13 Aug 2019 19:14:54 -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 S1728268AbfHNCNZ (ORCPT + 99 others); Tue, 13 Aug 2019 22:13:25 -0400 Received: from inva020.nxp.com ([92.121.34.13]:42842 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727498AbfHNCNU (ORCPT ); Tue, 13 Aug 2019 22:13:20 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7CEAF1A0256; Wed, 14 Aug 2019 04:13:18 +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 CD5741A0269; Wed, 14 Aug 2019 04:13:13 +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 2C4AB402EC; Wed, 14 Aug 2019 10:13:08 +0800 (SGT) From: Xiaowei Bao To: minghuan.Lian@nxp.com, mingkai.hu@nxp.com, roy.zang@nxp.com, lorenzo.pieralisi@arm.com, bhelgaas@google.com, linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Xiaowei Bao Subject: [PATCHv6 1/2] PCI: layerscape: Add the bar_fixed_64bit property in EP driver. Date: Wed, 14 Aug 2019 10:03:29 +0800 Message-Id: <20190814020330.12133-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. v6: - remove the [EXT] tag of the $SUBJECT in email. 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