]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: allow settings table to support more than 32 link modes
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 25 Jul 2017 14:02:37 +0000 (15:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 03:55:28 +0000 (20:55 -0700)
commit82b9f83b6a854174b64e463767601a0f1041502a
treea5832f3afe250c8add777087a5341405252a6997
parent8eabc52efa8ffa29697f3b505272d7ab86df96fb
net: phy: allow settings table to support more than 32 link modes

Allow the phy settings table to support more than 32 link modes by
switching to the ethtool link mode bit number representation, rather
than storing the mask.  This will allow phylink and other ethtool
code to share the settings table to look up settings.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c