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: 6640031 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F0AF09F326 for ; Thu, 18 Jun 2015 18:46:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 239F820848 for ; Thu, 18 Jun 2015 18:46:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 14C59206F6 for ; Thu, 18 Jun 2015 18:46:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755691AbbFRSpz (ORCPT ); Thu, 18 Jun 2015 14:45:55 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:35469 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751394AbbFRSpz (ORCPT ); Thu, 18 Jun 2015 14:45:55 -0400 Received: by pacyx8 with SMTP id yx8so67057297pac.2 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=U7IA4TxHLv8kZh1k6eJi+skrxWy5jUjzuKow4mVDaddezjv2QfX5QJwcolKNV/KNt+ aA5ER+NN2EL8TaoBaQy2ZOeosTfoe8SbnAUee59TbY4gifZyvdAEUCy1wlhWWskwJJAJ hbYTMyyvZuzHbePAhffLxEjiZAbCoKWuiDAznH6Jyv82euOnQ3x+Ui4apAvl/l4q1qRy 9rPNjEV3YzjNv7KbSWopNz/QixobDJPOC/TOTSfu06WLhaC7uieV50pUc/D1bqzL6lZ1 lJ4eoIcBrvsiB2k+KSaN9FkoXOL74jUhvwYrppHdWSrKLBng49Sos4OEIL2jBWVoSyM+ ZYxQ== X-Gm-Message-State: ALoCoQkQ/J0swTO02FmlCERq81ZjzBBmugjhp3rA6TM06giuyCV1YjwIVF30xprqTCAzeKlx7Jv5 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 Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tanmay Inamdar , patches@apm.com, Duc Dang 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 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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;