]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 27 Apr 2012 13:41:21 +0000 (14:41 +0100)
commit2fb94126f1599d58e10a39e5b726130232230edd
treedfb48390f2c0d1c2c3f2dba78fc8bc5dfb753235
parent9233d04c6e166e68ef929c299bf4f8940808b7c3
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