ar8327: Add workarounds for AR8337 switch.
authorVittorio Gambaletta <openwrt@vittgam.net>
Sun, 26 Mar 2017 08:08:20 +0000 (10:08 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 13 Dec 2017 13:59:03 +0000 (14:59 +0100)
commit7ccfa826eebfdc514e537ad25f75b76bb2554a60
tree0be882cf5df91db60f12350f59b50ce1ea089e77
parent0aafbf6c004879de08932dcb002aceb480a36580
ar8327: Add workarounds for AR8337 switch.

RGMII RX delay setting needs to be always specified for AR8337 to
avoid port 5 RX hang on high traffic / flood conditions.

Also, the HOL registers that set per-port and per-packet-priority
buffer sizes are updated with the reduced values suggested by the
QCA switch team.

Finally, AR8327 reserved register fixups are disabled for the AR8337.

This patch is adapted from the Code Aurora QSDK, but with magic
values mapped to proper defines.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
(cherry picked from commit 967b6be118e3217e8d6a28df9c615d3255e7b1ae)
target/linux/generic/files/drivers/net/phy/ar8327.c
target/linux/generic/files/drivers/net/phy/ar8327.h