]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3b71f313debbb01febac3f3cd445fd439d2e3ee0
tree6b25af156504351518b1e7bbab8e39ff1fe3de00
parent8a874969f4e6940e953a2074a7fef0e034485882
parentac6531ea1c7c6c279f02d9ca5af7090126566390
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>