ar71xx: qca955x pci init/reset fixes
authorTomislav Požega <pozega.tomislav@gmail.com>
Tue, 3 Sep 2019 22:48:37 +0000 (00:48 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 20:26:27 +0000 (16:26 -0400)
commitad9e386c0f948ed6558cbdad32529d587426c59b
tree5ac2304b99abe41a0ebd5c94ac5c034f34a45d92
parent3bbfead6b7b9d821e69a692a975b9d3420189beb
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]