]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: add support for qca8k switch internal PHY in at803x
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 14 May 2021 21:00:15 +0000 (23:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:30:23 +0000 (15:30 -0700)
commit147041955ad7474e346f87d769bbba2c2ebb4f5f
tree3d70760e011cb5d4252cf59a7cd6f8e437b95b03
parent4d22e75383725b3d946618cb63745fd7616b4770
net: phy: add support for qca8k switch internal PHY in at803x

Since the at803x share the same regs, it's assumed they are based on the
same implementation. Make it part of the at803x PHY driver to skip
having redudant code.
Add initial support for qca8k internal PHYs. The internal PHYs requires
special mmd and debug values to be set based on the switch revision
passwd using the dev_flags. Supports output of idle, receive and eee_wake
errors stats.
Some debug values sets can't be translated as the documentation lacks any
reference about them.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/Kconfig
drivers/net/phy/at803x.c