]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: honor child buses add_size in hot plug configuration
authorYinghai Lu <yinghai@kernel.org>
Mon, 25 Jul 2011 20:08:38 +0000 (13:08 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 8 Oct 2012 15:04:20 +0000 (08:04 -0700)
commit3acd7596487bc6d80ae1e6e180ef0c9dfabcf3c8
treec6d26a1d939ef0968dc4ef89386412f5a2037571
parent465fc7e83c7785080e017e32e2d9a56227bdc263
PCI: honor child buses add_size in hot plug configuration

commit be768912a49b10b68e96fbd8fa3cab0adfbd3091 upstream.

git commit c8adf9a3e873eddaaec11ac410a99ef6b9656938
    "PCI: pre-allocate additional resources to devices only after
successful allocation of essential resources."

fails to take into consideration the optional-resources needed by children
devices while calculating the optional-resource needed by the bridge.

This can be a problem on some setup. For example, if a hotplug bridge has 8
children hotplug bridges, the bridge should have enough resources to accomodate
the hotplug requirements for each of its children hotplug bridges.  Currently
this is not the case.

This patch fixes the problem.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Reviewed-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Andrew Worsley <amworsley@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/setup-bus.c