PCI hotplug: make sure child bridges are enabled at hotplug time
authorYinghai Lu <yinghai@kernel.org>
Fri, 21 May 2010 21:35:06 +0000 (14:35 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 30 Jul 2010 16:29:16 +0000 (09:29 -0700)
commit3f579c340fe6d6bdd8c6f9f144e7c3b85d4174ec
tree7dbffa4e375aa2315c19db402857a07b24c82b40
parent0ba10bc75271e4139eb9ca67d107624d581e3a94
PCI hotplug: make sure child bridges are enabled at hotplug time

Found one PCIe Module with several bridges built-in where a "cold"
hotadd doesn't work.

If we end up reassigning bridge windows at hotadd time, and have to loop
through assigning new ranges, we won't end up enabling the child bridges
because the first assignment pass already tried to enable them, which
prevents __pci_bridge_assign_resource from updating the windows.

So try to move enabling of child bridges to the end, and only do it
once.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/setup-bus.c