]> git.baikalelectronics.ru Git - kernel.git/commit
phy: fixed_phy: Set supported speed in phydev
authorAndrew Lunn <andrew@lunn.ch>
Mon, 31 Aug 2015 13:56:48 +0000 (15:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2015 21:48:02 +0000 (14:48 -0700)
commit088bc894b51f246a231a90a1686e081c9e69c794
tree0394017fa6fc48d665452780ba481d74108ccf10
parent4e2375569255a62cb95d9760a8c5f0b55cb58902
phy: fixed_phy: Set supported speed in phydev

Set the supported field of the phydev to indicate the speed features
of the phy. If the phy is never attached to a netdev, but used in an
adjust_link() function, the speed will be incorrectly evaluated to
10/half rather than the correct speed/duplex.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed_phy.c