MIPS: ath79: fix broken ar724x_pci_{read,write} functions
authorGabor Juhos <juhosg@openwrt.org>
Wed, 14 Mar 2012 09:36:04 +0000 (10:36 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 May 2012 15:49:03 +0000 (17:49 +0200)
commit64adb6bb62bee11ad04c2f9c3c797799e329c351
treebc366ea60a40310184cbdb1bfb20e648ee639abe
parentffdce4668234a113e767edd27aa1331903959106
MIPS: ath79: fix broken ar724x_pci_{read,write} functions

The current ar724x_pci_{read,write} functions are
broken. Due to that, pci_read_config_byte returns
with bogus values, and pci_write_config_{byte,word}
unconditionally clears the accessed PCI configuration
registers instead of changing the value of them.

The patch fixes the broken functions, thus the PCI
configuration space can be accessed correctly.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3493/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci-ar724x.c