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:47:49 +0000 (09:47 +0200)
commit191c3e49b99911571d3cc66ef8d363d1cafb2b89
tree6f9a41eb00def3379eec12cd7f388915ed58e202
parente8350c998bbac54f6d17bf809e30386ef3cf7563
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>
target/linux/ar71xx/patches-4.14/953-qca955x-pci-reset-fixes.patch [new file with mode: 0644]