Re: PCI bus numbering and orphaned devices

From: Justin T. Gibbs <gibbs_at_scsiguy.com>
Date: Wed, 11 Jun 2003 15:41:24 -0600
>> +	 *
>> +	 * If we don't hardware the bus down, pciconf gets confused.
>>  	 */
>>  	if (sc->secbus != 0) {
>> -		child = device_add_child(dev, "pci", -1);
>> +		child = device_add_child(dev, "pci", sc->secbus);
>>  		if (child != NULL)
>>  			return (bus_generic_attach(dev));
>>  	} else
>
> This one looks good, please commit. The comment above is outdated, so
> it might be better to just remove it completely.

At least fix the typo in the comment if you aren't going to remove it.

--
Justin
Received on Wed Jun 11 2003 - 12:41:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:11 UTC