From: Joakim Tjernlund Date: Fri, 14 Dec 2018 14:17:07 +0000 (+0100) Subject: gianfar: Add change_carrier() for Fixed PHYs X-Git-Tag: for-4.21~11^2~69 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6211d46713c5dc62bb87dff208134b253ff5e128;p=uclinux-h8%2Flinux.git gianfar: Add change_carrier() for Fixed PHYs This allows to control carrier from /sys/class/net/ethX/carrier for Fixed PHYs. Signed-off-by: Joakim Tjernlund Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index a831086601eb..45fcc96be90e 100644 --- a/drivers/net/ethernet/freescale/gianfar.c +++ b/drivers/net/ethernet/freescale/gianfar.c @@ -500,6 +500,7 @@ static const struct net_device_ops gfar_netdev_ops = { .ndo_tx_timeout = gfar_timeout, .ndo_do_ioctl = gfar_ioctl, .ndo_get_stats = gfar_get_stats, + .ndo_change_carrier = fixed_phy_change_carrier, .ndo_set_mac_address = gfar_set_mac_addr, .ndo_validate_addr = eth_validate_addr, #ifdef CONFIG_NET_POLL_CONTROLLER