net: ethernet: Add helper to remove a supported link mode
authorAndrew Lunn <andrew@lunn.ch>
Tue, 11 Sep 2018 23:53:14 +0000 (01:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 03:24:21 +0000 (20:24 -0700)
commit41124fa64d4b298b82266b7ddbefc43540b77b44
tree6674297c9ee35f311f290299bb5d3151fe46d85c
parent04b7d41d8046ded18fa32d9c7cb524ba28947188
net: ethernet: Add helper to remove a supported link mode

Some MAC hardware cannot support a subset of link modes. e.g. often
1Gbps Full duplex is supported, but Half duplex is not. Add a helper
to remove such a link mode.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
drivers/net/ethernet/cadence/macb_main.c
drivers/net/ethernet/freescale/fec_main.c
drivers/net/ethernet/microchip/lan743x_main.c
drivers/net/ethernet/renesas/ravb_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/phy/phy_device.c
drivers/net/usb/lan78xx.c
include/linux/phy.h