[PATCH v11 49/60] PCI: Don't add too much io port for hotplug bridge with old size

2016-04-07 Thread Yinghai Lu
Now we add too much for hotplug bridge io port. For example, when hotplug bridge has two children bridges, every child bridge will need 0x1000, so size1 will be 0x2000 and size is 0. The min_size for the hotplug bridge is 0x100. with old version calculate_iosize, we get 0x3000 for final size as we

[PATCH v11 49/60] PCI: Don't add too much io port for hotplug bridge with old size

2016-04-07 Thread Yinghai Lu
Now we add too much for hotplug bridge io port. For example, when hotplug bridge has two children bridges, every child bridge will need 0x1000, so size1 will be 0x2000 and size is 0. The min_size for the hotplug bridge is 0x100. with old version calculate_iosize, we get 0x3000 for final size as we