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)
commit34b31da486a5e4eda9ff548ebf6dc3adc167bd0c
tree0394017fa6fc48d665452780ba481d74108ccf10
parentdea870242a9c4ea74b3ca0f2da3f864c47484cff
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