diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-11-22 11:49:40 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2019-12-08 14:41:39 +0000 |
commit | dd43157174377f277bb56abdd010df1d0507c8f4 (patch) | |
tree | cfd7fd0ef567aaaf67ad026f1de8ee69a8b4c8d9 /scripts/gdb/linux/utils.py | |
parent | 8bd4cd88362239081e62f9080429254f2dfaccf7 (diff) |
net: phy: initialise phydev speed and duplex sanely
When a phydev is created, the speed and duplex are set to zero and
-1 respectively, rather than using the predefined SPEED_UNKNOWN and
DUPLEX_UNKNOWN constants.
There is a window at initialisation time where we may report link
down using the 0/-1 values. Tidy this up and use the predefined
constants, so debug doesn't complain with:
"Unsupported (update phy-core.c)/Unsupported (update phy-core.c)"
when the speed and duplex settings are printed.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions