From patchwork Thu Jun 18 18:45:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Duc Dang X-Patchwork-Id: 6640061 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DFF3BC0433 for ; Thu, 18 Jun 2015 18:48:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2695B20861 for ; Thu, 18 Jun 2015 18:48:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4EF7A20845 for ; Thu, 18 Jun 2015 18:48:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5epO-0000ge-LQ; Thu, 18 Jun 2015 18:46:18 +0000 Received: from mail-pd0-f182.google.com ([209.85.192.182]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5epL-0000dw-JM for linux-arm-kernel@lists.infradead.org; Thu, 18 Jun 2015 18:46:16 +0000 Received: by pdjn11 with SMTP id n11so72403227pdj.0 for ; Thu, 18 Jun 2015 11:45:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=i9UuM1SikOsSe9WQp0jaog67L2xEColMTPOeP1+Lqq0=; b=T0oS9h12kiVo6I6vpU4/aBJu+o0rqKYSks5DvSn+ylX9nvOQf9JEF3cTGbezYPOjIG zAwUjvACHkPnarh8HFAo6856ho+DLIv8s0npR3QUVhPqz16/EHDkbTj0CyoRRpH5K6N+ W4zhi4sI8RCuNiqy8d0g0SrKlnR3BRl5M/BrsC3n77c32wQQtVK/nnGkpZ1ZiavR7uxf H/c2B5kDtM/YLdHu9zbYCJc8WAwbGx+m5HOME2t4eoKYcPr1q9mQpl15vmCMSeBDAsg8 Qrig4zTefDOw2kafUBS77YPsETWT62SUIsTMNUMTjLJO9NrDBQHoy+tcmRZFioAkAOYp Awdg== X-Gm-Message-State: ALoCoQk/JCvJsJVFNhPfkdDNQGNeeo9UET2IGq2HBwkfwaBmqq3/XkKNUyiDvCqJEhqN8NuGd0ow X-Received: by 10.68.169.34 with SMTP id ab2mr23529498pbc.120.1434653154358; Thu, 18 Jun 2015 11:45:54 -0700 (PDT) Received: from dhdang-Precision-WorkStation-T3400.amcc.com (67-207-112-226.static.wiline.com. [67.207.112.226]) by mx.google.com with ESMTPSA id nq2sm8796185pdb.70.2015.06.18.11.45.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Jun 2015 11:45:53 -0700 (PDT) From: Duc Dang To: Bjorn Helgaas Subject: [PATCH 1/1] PCI: xgene: Allow config access to Root Port even when link is down Date: Thu, 18 Jun 2015 11:45:39 -0700 Message-Id: <1434653139-14461-1-git-send-email-dhdang@apm.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150618_114615_657719_7AAD662D X-CRM114-Status: GOOD ( 10.31 ) X-Spam-Score: -0.7 (/) Cc: linux-pci@vger.kernel.org, Duc Dang , patches@apm.com, linux-kernel@vger.kernel.org, Tanmay Inamdar , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Even if a Root Port's link is down, we should still be able to access the Port's configuration space. Suggested-by: Bjorn Helgaas Signed-off-by: Duc Dang Signed-off-by: Tanmay Inamdar --- drivers/pci/host/pci-xgene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-xgene.c b/drivers/pci/host/pci-xgene.c index 7e3cf28..2e66c87 100644 --- a/drivers/pci/host/pci-xgene.c +++ b/drivers/pci/host/pci-xgene.c @@ -139,7 +139,7 @@ static void __iomem *xgene_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, { struct xgene_pcie_port *port = bus->sysdata; - if ((pci_is_root_bus(bus) && devfn != 0) || !port->link_up || + if ((pci_is_root_bus(bus) && devfn != 0) || xgene_pcie_hide_rc_bars(bus, offset)) return NULL;