diff options
author | Joakim Tjernlund <joakim.tjernlund@infinera.com> | 2018-12-14 15:17:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-17 11:24:32 -0800 |
commit | 6211d46713c5dc62bb87dff208134b253ff5e128 (patch) | |
tree | b4482d3c08475559e436294155b9e7cc2fee5f71 /drivers/net/ethernet/freescale | |
parent | 6e8b0ff1ba4cc145a8fb13a3212de0f75d5f043c (diff) |
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 <joakim.tjernlund@infinera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |