Re: [PATCH 1/2] pci: don't assign non root buses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthew Wilcox wrote:
> On Fri, Apr 17, 2009 at 01:15:36PM -0700, Yinghai Lu wrote:
>> can you fix pci_is_root_bus?
>>
>> +/*
>> + * Returns true if the pci bus is root (behind host-pci bridge),
>> + * false otherwise
>> + */
>> +static inline bool pci_is_root_bus(struct pci_bus *pbus)
>> +{
>> +       return !(pbus->parent);
>> +}
> 
> struct pci_bus {
>         struct list_head node;          /* node in list of buses */
>         struct pci_bus  *parent;        /* parent bus this bridge is on */
> 
> different 'parent' ...
> 
ok, I get it.
it seems pci_create_bus is only for creating root bus

YH
--
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

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux