]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49d085980eee55e78f1c3c4f73b559ad6a27905b
treeececb79102dfaf8b12b111ab45c921fa73d48dfb
parentb4a396ec1191a0743f51852fea956ae7e8d28066
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