net: phy: Add helper for advertise to lcl value
authorAndrew Lunn <andrew@lunn.ch>
Sat, 29 Sep 2018 21:04:13 +0000 (23:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Oct 2018 05:55:36 +0000 (22:55 -0700)
commit5f991f7bddc991ecc3c8a009ffd76fccff4661c7
tree041625dea9f72ac77fef229b92476238619ab91a
parentedc7ccbbcf32b97c7d26cd556f364eb4f22c4285
net: phy: Add helper for advertise to lcl value

Add a helper to convert the local advertising to an LCL capabilities,
which is then used to resolve pause flow control settings.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
drivers/net/ethernet/freescale/fman/mac.c
drivers/net/ethernet/freescale/gianfar.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/socionext/sni_ave.c
include/linux/mii.h