Russell King
f4f8b2ec1e
net: phy: initialise phydev speed and duplex sanely
...
[ Upstream commit a5d66f8100 ]
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 >
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2019-12-31 16:36:15 +01:00
..
2017-12-01 15:42:21 -05:00
2018-03-01 21:23:34 -05:00
2018-01-08 14:20:21 -05:00
2019-07-14 08:11:08 +02:00
2019-11-10 11:27:52 +01:00
2017-12-01 15:42:21 -05:00
2016-01-07 14:31:27 -05:00
2018-05-23 15:27:01 -04:00
2018-05-26 19:46:15 -04:00
2018-05-23 15:27:01 -04:00
2018-06-05 09:43:09 -04:00
2017-12-01 15:42:21 -05:00
2018-03-01 21:23:35 -05:00
2017-12-01 15:42:21 -05:00
2018-07-03 11:38:07 +09:00
2017-11-02 11:10:55 +01:00
2019-02-12 19:47:21 +01:00
2017-12-01 15:42:21 -05:00
2018-06-10 12:38:03 -07:00
2019-12-31 16:35:27 +01:00
2016-01-07 14:31:27 -05:00
2018-06-24 16:41:58 +09:00
2017-12-01 15:42:21 -05:00
2018-03-23 13:19:49 -04:00
2019-07-14 08:11:08 +02:00
2017-12-01 15:42:21 -05:00
2019-07-14 08:11:08 +02:00
2019-06-04 08:02:32 +02:00
2019-05-05 14:42:38 +02:00
2019-03-19 13:12:40 +01:00
2017-12-27 11:06:50 -05:00
2017-02-09 17:10:23 -05:00
2019-11-20 18:47:53 +01:00
2018-04-19 15:59:10 -04:00
2018-04-20 10:33:26 -04:00
2017-11-02 11:10:55 +01:00
2016-03-16 19:55:37 -04:00
2016-03-14 15:27:22 -04:00
2018-11-23 08:17:06 +01:00
2016-07-16 21:32:58 -07:00
2017-08-06 20:55:28 -07:00
2017-08-06 20:55:28 -07:00
2016-01-07 14:31:26 -05:00
2018-05-16 14:20:36 -04:00
2018-08-02 14:36:49 -07:00
2018-06-26 23:24:07 +09:00
2018-03-07 12:39:59 -05:00
2017-09-05 14:42:52 -07:00
2016-03-14 15:27:22 -04:00
2018-01-08 14:30:28 -05:00
2016-03-14 15:27:22 -04:00
2017-12-18 15:09:42 -05:00
2017-05-16 11:41:08 -04:00
2019-04-03 06:26:17 +02:00
2019-03-10 07:17:18 +01:00
2018-05-10 14:16:36 -04:00
2018-04-21 16:32:48 -04:00
2019-11-20 18:45:53 +01:00
2019-10-05 13:09:27 +02:00
2019-12-31 16:36:15 +01:00
2019-08-29 08:28:36 +02:00
2019-04-05 22:33:10 +02:00
2018-03-04 18:11:54 -05:00
2018-07-25 13:41:22 -07:00
2019-09-19 09:09:30 +02:00
2017-12-01 15:42:21 -05:00
2018-11-23 08:17:06 +01:00
2017-12-01 15:42:21 -05:00
2019-02-27 10:08:58 +01:00
2019-07-28 08:29:24 +02:00
2019-02-27 10:08:58 +01:00
2018-04-27 20:18:55 -04:00
2019-05-16 19:41:25 +02:00
2017-12-01 15:42:21 -05:00
2016-06-27 10:40:57 -04:00
2017-11-02 11:10:55 +01:00
2018-03-01 21:23:34 -05:00
2017-12-01 15:42:21 -05:00
2018-07-04 11:30:02 +09:00
2019-02-23 09:07:25 +01:00