OSDN Git Service

Merge branch 'Preparing-for-phylib-linkmodes'
authorDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 03:24:22 +0000 (20:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 03:24:22 +0000 (20:24 -0700)
commit15665342d48ba7fc7c2284663332381bc3083d33
tree6b25af156504351518b1e7bbab8e39ff1fe3de00
parenteca09be82eb80e2daf2111beae8b255a12809025
parent22b7d29926b577ff4f480611380d03268545b787
Merge branch 'Preparing-for-phylib-linkmodes'

Andrew Lunn says:

====================
Preparing for phylib linkmodes

phylib currently makes us of a u32 bitmap for advertising, supported,
and link partner capabilities. For a long time, this has been
sufficient, for devices up to 1Gbps. With more MAC/PHY combinations
now supporting speeds greater than 1Gbps, we have run out of
bits. There is the need to replace this u32 with an
__ETHTOOL_DECLARE_LINK_MODE_MASK, which makes use of linux's generic
bitmaps.

This patchset does some of the work preparing for this change. A few
cleanups are applied to PHY drivers. Some MAC drivers directly access
members of phydev which are going to change type. These patches adds
some helpers and swaps MAC drivers to use them, mostly dealing with
Pause configuration.

v3:
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Add missing at in commit message
Change Subject of patch 5
Fix return in from phy_set_asym_pause
Fix kerneldoc in phy_set_pause

v2:
Fixup bad indentation in tg3.c
Rename phy_support_pause() to phy_support_sym_pause()
Also trigger autoneg if the advertising settings have changed.
Rename phy_set_pause() to phy_set_sym_pause()
Use the bcm63xx_enet.c logic, not fec_main.c for validating pause
====================

Signed-off-by: David S. Miller <davem@davemloft.net>