aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/qca8k.h
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2022-02-02 01:03:31 +0100
committerDavid S. Miller <davem@davemloft.net>2022-02-02 14:43:59 +0000
commit2cd5485663847d468dc207b3ff85fb1fab44d97f (patch)
treef24f395cb5fc64c4ee25724cb4aa0cd1bc496a3b /drivers/net/dsa/qca8k.h
parentnet: dsa: qca8k: add support for mib autocast in Ethernet packet (diff)
downloadlinux-dev-2cd5485663847d468dc207b3ff85fb1fab44d97f.tar.xz
linux-dev-2cd5485663847d468dc207b3ff85fb1fab44d97f.zip
net: dsa: qca8k: add support for phy read/write with mgmt Ethernet
Use mgmt Ethernet also for phy read/write if availabale. Use a different seq number to make sure we receive the correct packet. On any error, we fallback to the legacy mdio read/write. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/qca8k.h')
-rw-r--r--drivers/net/dsa/qca8k.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca8k.h b/drivers/net/dsa/qca8k.h
index 2d7d084db089..c6f6abd2108e 100644
--- a/drivers/net/dsa/qca8k.h
+++ b/drivers/net/dsa/qca8k.h
@@ -14,6 +14,7 @@
#include <linux/dsa/tag_qca.h>
#define QCA8K_ETHERNET_MDIO_PRIORITY 7
+#define QCA8K_ETHERNET_PHY_PRIORITY 6
#define QCA8K_ETHERNET_TIMEOUT 100
#define QCA8K_NUM_PORTS 7