- Subject: Re: [PATCH -v11 04/30] PCI: Add busn_res into struct pci_bus.
- From: Yinghai Lu <yinghai@xxxxxxxxxx>
- Date: Mon, 30 Apr 2012 17:32:18 -0700
- Cc: Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, David Miller <davem@xxxxxxxxxxxxx>, x86 <x86@xxxxxxxxxx>, Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, linux-pci@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-arch@xxxxxxxxxxxxxxx
- In-reply-to: <CAErSpo6Wbjh_pzDOkGRoog2WeJQET9UT0fiaanV0r15pq7hT6Q@mail.gmail.com>
- References: <1332135781-13695-1-git-send-email-yinghai@kernel.org> <1332135781-13695-5-git-send-email-yinghai@kernel.org> <CAErSpo6Wbjh_pzDOkGRoog2WeJQET9UT0fiaanV0r15pq7hT6Q@mail.gmail.com>
On Mon, Apr 30, 2012 at 4:25 PM, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote:
>> --- a/include/linux/pci.h
>> +++ b/include/linux/pci.h
>> @@ -419,6 +419,7 @@ struct pci_bus {
>> struct list_head slots; /* list of slots on this bus */
>> struct resource *resource[PCI_BRIDGE_RESOURCE_NUM];
>> struct list_head resources; /* address space routed to this bus */
>> + struct resource busn_res; /* track registered bus num range */
>>
>> struct pci_ops *ops; /* configuration access functions */
>> void *sysdata; /* hook for sys-specific extension */
>
> struct pci_bus already includes "secondary" and "subordinate". This
> new "busn_res" looks like it will contain the same information. Why
> do we need both?
In some case the could be different.
for root bus from _CRS, busn_res could bigger than subordinate,
because scan_childbus will update subordinate.
and also we have one resource to insert it into the resource tree, so
later could probe/allocate bus num range.
Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Home]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]