ar71xx: qca955x pci init/reset fixes
authorTomislav Požega <pozega.tomislav@gmail.com>
Tue, 3 Sep 2019 22:48:37 +0000 (00:48 +0200)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Wed, 11 Sep 2019 07:57:28 +0000 (09:57 +0200)
commit9ba9a9134371845f97569a032d93c338d96f8f40
tree037ae16f51697321b458a7a03b7aa145cb15e951
parenta3c3a8c5ab98dd580ca5ea182b71d034432e69be
ar71xx: qca955x pci init/reset fixes

Current ar724x code does the reset only on single pci bus, and
in case of qca9558 writes the wrong register (0x10 vs 0x0c).
This change allows the reset of second pci bus, commonly used in
Archer C7 devices, in case host controller is stuck in reset.
If the resetting controller on boot can solve any other issue it
can be enabled unconditionally by removing reset check before
ar724x_pci_hw_init is called.

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
[refreshed to apply cleanly]
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(cherry picked from commit 76d870871cb12fc0c170e5fd23bce568adfaae6d)
target/linux/ar71xx/patches-4.14/953-qca955x-pci-reset-fixes.patch [new file with mode: 0644]