Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754969Ab2BEHAM (ORCPT ); Sun, 5 Feb 2012 02:00:12 -0500 Received: from rcsinet15.oracle.com ([148.87.113.117]:61693 "EHLO rcsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754871Ab2BEHAJ (ORCPT ); Sun, 5 Feb 2012 02:00:09 -0500 From: Yinghai Lu To: Jesse Barnes , Benjamin Herrenschmidt , Tony Luck Cc: Bjorn Helgaas , Dominik Brodowski , Andrew Morton , Linus Torvalds , Greg Kroah-Hartman , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Yinghai Lu , Kyle McMartin , Helge Deller , linux-parisc@vger.kernel.org Subject: [PATCH 10/24] PCI, parisc: Register busn_res for root buses Date: Sat, 4 Feb 2012 22:57:54 -0800 Message-Id: <1328425088-6562-11-git-send-email-yinghai@kernel.org> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1328425088-6562-1-git-send-email-yinghai@kernel.org> References: <1328425088-6562-1-git-send-email-yinghai@kernel.org> X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4F2E28E4.000C,ss=1,re=0.000,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1513 Lines: 45 Signed-off-by: Yinghai Lu Cc: Kyle McMartin Cc: Helge Deller Cc: linux-parisc@vger.kernel.org --- drivers/parisc/dino.c | 2 ++ drivers/parisc/lba_pci.c | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/parisc/dino.c b/drivers/parisc/dino.c index 7ff10c1..3f2e203 100644 --- a/drivers/parisc/dino.c +++ b/drivers/parisc/dino.c @@ -1014,7 +1014,9 @@ static int __init dino_probe(struct parisc_device *dev) return 0; } + pci_bus_insert_busn_res(bus, dino_current_bus, 255); bus->subordinate = pci_scan_child_bus(bus); + pci_bus_update_busn_res_end(bus, bus->subordinate); /* This code *depends* on scanning being single threaded * if it isn't, this global bus number count will fail diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c index d5f3d75..b58bf8b 100644 --- a/drivers/parisc/lba_pci.c +++ b/drivers/parisc/lba_pci.c @@ -1531,6 +1531,9 @@ lba_driver_probe(struct parisc_device *dev) return 0; } + pci_bus_insert_busn_res(lba_bus, lba_dev->hba.bus_num.start, + lba_dev->hba.bus_num.end); + lba_bus->subordinate = pci_scan_child_bus(lba_bus); /* This is in lieu of calling pci_assign_unassigned_resources() */ -- 1.7.7 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/