]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: add genphy_c45_an_config_aneg
authorAndrew Lunn <andrew@lunn.ch>
Sun, 17 Feb 2019 09:29:19 +0000 (10:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Feb 2019 18:26:35 +0000 (10:26 -0800)
commit03fb407211af45daf0e827095a4c8a11447b3aff
tree3f5d46baef39ffdae12921ff61cf97ea94a2b768
parent28a595e5b8b0f2d77766483ba0fec2ae316b9c3f
net: phy: add genphy_c45_an_config_aneg

C45 configuration of 10/100 and multi-giga bit auto negotiation
advertisement is standardized. Configuration of 1000Base-T however
appears to be vendor specific. Move the generic code out of the
Marvell driver into the common phy-c45.c file.

v2:
- change function name to genphy_c45_an_config_aneg

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
[hkallweit1@gmail.com: use new helper linkmode_adv_to_mii_10gbt_adv_t and split patch]
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy-c45.c
include/linux/phy.h