]> git.baikalelectronics.ru Git - kernel.git/commit
net: ag71xx: fix mdio subnode support
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 1 Oct 2019 06:41:47 +0000 (08:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2019 17:19:19 +0000 (10:19 -0700)
commit63a1de40b1d63d5467a67b6270247289d8f9eb26
tree1044de057333cd0efc16224484044a68d730b4e2
parentd40a07f97e3573b3350c58c7fe1a061c7dd4ced6
net: ag71xx: fix mdio subnode support

This patch is syncing driver with actual devicetree documentation:
Documentation/devicetree/bindings/net/qca,ar71xx.txt
|Optional subnodes:
|- mdio : specifies the mdio bus, used as a container for phy nodes
|  according to phy.txt in the same directory

The driver was working with fixed phy without any noticeable issues. This bug
was uncovered by introducing dsa ar9331-switch driver.
Since no one reported this bug until now, I assume no body is using it
and this patch should not brake existing system.

Fixes: 0db86ac1cf03 ("net: ethernet: add ag71xx driver")
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/ethernet/atheros/ag71xx.c