net: mscc: use the PHY MII ioctl interface when possible
authorAntoine Tenart <antoine.tenart@bootlin.com>
Tue, 26 May 2020 15:01:48 +0000 (17:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 21:54:31 +0000 (14:54 -0700)
commit7ff4f3f315db361e35c1d61a6fdbfddbe345b633
treeececb79102dfaf8b12b111ab45c921fa73d48dfb
parent626a83238e6a63d88a5b5291febe797b244b5f18
net: mscc: use the PHY MII ioctl interface when possible

Allow ioctl to be implemented by the PHY, when a PHY is attached to the
Ocelot switch. In case the ioctl is a request to set or get the hardware
timestamp, use the Ocelot switch implementation for now.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c