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>
This commit is contained in:

committed by
David S. Miller

parent
be4e119f99
commit
dc70058315
@@ -66,4 +66,12 @@ config NET_DSA_SMSC_LAN9303_I2C
|
||||
Enable access functions if the SMSC/Microchip LAN9303 is configured
|
||||
for I2C managed mode.
|
||||
|
||||
config NET_DSA_SMSC_LAN9303_MDIO
|
||||
tristate "SMSC/Microchip LAN9303 3-ports 10/100 ethernet switch in MDIO managed mode"
|
||||
depends on NET_DSA
|
||||
select NET_DSA_SMSC_LAN9303
|
||||
---help---
|
||||
Enable access functions if the SMSC/Microchip LAN9303 is configured
|
||||
for MDIO managed mode.
|
||||
|
||||
endmenu
|
||||
|
Reference in New Issue
Block a user