]> git.baikalelectronics.ru Git - kernel.git/commit
enetc: add ioctl() support for PHY-related ops
authorMichael Walle <michael@walle.cc>
Thu, 7 Nov 2019 08:39:37 +0000 (09:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 23:25:17 +0000 (15:25 -0800)
commite152da1c961fd9116e7a76eb0bd2029d40eb9406
treea66553b0aa259e37866b00ebefa7093b5b8c22ba
parent729c2f43e6a0de649244b40984a67384a640be85
enetc: add ioctl() support for PHY-related ops

If there is an attached PHY try to handle the requested ioctl with its
handler, which allows the userspace to access PHY registers, for
example. This will make mii-diag and similar tools work.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc.c