net: phy: at803x: add mdix configuration support for AR9331 and AR8035
authorOleksij Rempel <o.rempel@pengutronix.de>
Sun, 19 Jul 2020 08:05:30 +0000 (10:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2020 01:07:16 +0000 (18:07 -0700)
commit7dce80c2a526a199ae1447e7a58d4135bb18ff8a
treedc6de6388e008121896ee462fbc686c4628bea26
parentff9a8c48eb426881843be4042eef3a1a629b72a4
net: phy: at803x: add mdix configuration support for AR9331 and AR8035

This patch add MDIX configuration ability for AR9331 and AR8035. Theoretically
it should work on other Atheros PHYs, but I was able to test only this
two.

Since I have no certified reference HW able to detect or configure MDIX, this
functionality was confirmed by oscilloscope.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c