]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa92152c4ece8ccb5314b2dcc27bab481122e29e
tree1badb68060b9d5fa5a5d219f4dc7d9009c5660c3
parent767651664c2ccc250b1e3915f18dfef37b1b8b8d
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