net: dsa: LAN9303: add MDIO managed mode support
authorJuergen Beisert <jbe@pengutronix.de>
Tue, 18 Apr 2017 08:48:27 +0000 (10:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Apr 2017 17:48:55 +0000 (13:48 -0400)
commitdc7005831523d674be11a98f3256e0cc871157d6
tree08f43cc785895ae0f6df25bfc3c004d9bd8cf4c8
parentbe4e119f991451a3f3385b4d167c016c6eb49e78
net: dsa: LAN9303: add MDIO managed mode support

When the LAN9303 device is in MDIO manged mode, all register accesses must
be done via MDIO.

Please note: this code is compile time tested only due to the absence of such
configured hardware. It is based on a patch from Stefan Roese from 2014.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
CC: devicetree@vger.kernel.org
CC: robh+dt@kernel.org
CC: mark.rutland@arm.com
CC: sr@denx.de
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/dsa/lan9303.txt
drivers/net/dsa/Kconfig
drivers/net/dsa/Makefile
drivers/net/dsa/lan9303_mdio.c [new file with mode: 0644]