atheros: ar2315-pci: rework the configuration access code
authorJohn Crispin <john@openwrt.org>
Fri, 12 Sep 2014 06:53:09 +0000 (06:53 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 12 Sep 2014 06:53:09 +0000 (06:53 +0000)
commit78c914ffe52e84b05c6d6ad33d9232fb980f1725
tree4da13d32f9f34042252f44a71ae1a86ed48640be
parentdbdd8906ac776e9b8d51284d4dc0ce24920a2231
atheros: ar2315-pci: rework the configuration access code

Use __raw_{read,write}l accessors and use Abort interrupt to detect a
configuration space read/write errors. The second change improves errors
detection, what improves the device presence detection and helps us to
avoid following (and similar) errors:

pci 0000:00:00.2: ignoring class 0x7e0200 (doesn't match header type 02)
pci 0000:00:00.2: bridge configuration invalid ([bus 03-90]), reconfiguring
pci 0000:00:00.2: not setting up bridge for bus 0000:01

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 42502
target/linux/atheros/patches-3.14/105-ar2315_pci.patch