]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: add support for phy read/write with mgmt Ethernet
authorAnsuel Smith <ansuelsmth@gmail.com>
Wed, 2 Feb 2022 00:03:31 +0000 (01:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Feb 2022 14:43:59 +0000 (14:43 +0000)
commit2cd5485663847d468dc207b3ff85fb1fab44d97f
treef24f395cb5fc64c4ee25724cb4aa0cd1bc496a3b
parent5c957c7ca78cce5e4b96866722b0115bd758d945
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>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h