]> 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)
commitc118abdff0e6b15e158ad2613cd044042db6be53
tree0394017fa6fc48d665452780ba481d74108ccf10
parent694998279b8b77464e79bd0ba0c020b170ffd875
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