diff options
author | Kevin Hao <haokexin@gmail.com> | 2013-06-05 02:26:51 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-06-10 08:36:13 +1000 |
commit | c5df457ffe6db7569de9fb856de490b5317c97b4 (patch) | |
tree | db4cc10d87a6c823888034972541c4274cfc6260 /arch/powerpc/perf | |
parent | 1612e111e4e565422242727efb59499cce8738e4 (diff) |
powerpc/pci: Check the bus address instead of resource address in pcibios_fixup_resources
If a BAR has the value of 0, we would assume that it is unset yet and
then mark the resource as unset and would reassign it later. But after
commit 6c5705fe (powerpc/PCI: get rid of device resource fixups)
the pcibios_fixup_resources is invoked after the bus address was
translated to linux resource. So the value of res->start is resource
address. And since the resource and bus address may be different, we
should translate it to the bus address before doing the check.
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/perf')
0 files changed, 0 insertions, 0 deletions