From: Joakim Tjernlund Date: Fri, 14 Dec 2018 14:17:08 +0000 (+0100) Subject: ucc_geth: Add change_carrier() for Fixed PHYs X-Git-Tag: v5.4-rc1~1957^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a28777f250311ac574237e6145ac72c7b3b7b049;p=platform%2Fkernel%2Flinux-rpi.git ucc_geth: 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/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index 2e978cb..c3d539e 100644 --- a/drivers/net/ethernet/freescale/ucc_geth.c +++ b/drivers/net/ethernet/freescale/ucc_geth.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -3676,6 +3677,7 @@ static const struct net_device_ops ucc_geth_netdev_ops = { .ndo_stop = ucc_geth_close, .ndo_start_xmit = ucc_geth_start_xmit, .ndo_validate_addr = eth_validate_addr, + .ndo_change_carrier = fixed_phy_change_carrier, .ndo_set_mac_address = ucc_geth_set_mac_addr, .ndo_set_rx_mode = ucc_geth_set_multi, .ndo_tx_timeout = ucc_geth_timeout,