vme_tsi148: Fix PCI address mapping assumption
authorJoe Schultz <jschultz@xes-inc.com>
Thu, 3 Apr 2014 19:48:16 +0000 (14:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Apr 2014 21:08:37 +0000 (14:08 -0700)
commit226572b110ab6083cb8c1d6afb191166b4178179
tree1badb68060b9d5fa5a5d219f4dc7d9009c5660c3
parent098ced8fefe4a4e4240fa47b1ed9b00d65b6cd21
vme_tsi148: Fix PCI address mapping assumption

Previously, tsi148_master_set() assumed the address contained in its
PCI bus resource represented the actual PCI bus address. This is a fine
assumption on some platforms. However, on platforms that don't use a
1:1 (CPU:PCI) mapping this results in the tsi148 driver configuring an
invalid master window translation.

This patch updates the vme_tsi148 driver to first convert the address
contained in the PCI bus resource into a PCI bus address before using
it.

[asierra: account for pcibios_resource_to_bus() prototype change]
Signed-off-by: Joe Schultz <jschultz@xes-inc.com>
Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vme/bridges/vme_tsi148.c