projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e8b0ff
)
gianfar: Add change_carrier() for Fixed PHYs
author
Joakim Tjernlund
<
[email protected]
>
Fri, 14 Dec 2018 14:17:07 +0000
(15:17 +0100)
committer
David S. Miller
<
[email protected]
>
Mon, 17 Dec 2018 19:24:32 +0000
(11:24 -0800)
This allows to control carrier from /sys/class/net/ethX/carrier
for Fixed PHYs.
Signed-off-by: Joakim Tjernlund <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/freescale/gianfar.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/freescale/gianfar.c
b/drivers/net/ethernet/freescale/gianfar.c
index a831086601ebb1111d80d7e165a5ef76f0d88528..45fcc96be90e06abb348843653313779918573f1 100644
(file)
--- 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