On Tuesday 20 April 2010 11:35:59 pm Yinghai wrote:
Please observe English conventions like capitalizing the first word
of a sentence (and not things like "We" in the middle) and using
a period at the end.
If you put a comment here, please at least add a space before the
closing "*/". Otherwise it looks sloppy.
This is ugly because it just repeats this code from pci_create_bus(),
and there's no indication either here or there that they are connected.
Admittedly, I think it's also sort of ugly that pci_bus_remove_resources()
exists at all -- I'd rather have some sort of hook so we could set the
bus resources correctly the first time.
Maybe you could at least add a pci_bus_set_default_resources() that
could be called both here and from pci_create_bus().
Why are you doing this patch? Did you see a machine where the host
bridge was left with no resources because of _CRS issues? If so,
this patch feels like a band-aid. I'd rather investigate the issue
directly, because that would probably be a Linux problem we could fix.
Also, if there *is* a reported problem, you should include a link to
the bugzilla or email thread.
Bjorn
--