Matt Carlson
34655ad638
tg3: Fix link check in tg3_adjust_link
...
The tg3 driver tried to detect link changes by comparing the tg3 local
active_speed member with SPEED_UNKNOWN (or formerly SPEED_INVALID).
This check is not correct, since phylib will never set its speed member
to either of these two values. The code only appeared to work because
tg3 initializes active_speed to SPEED_INVALID during tg3_init_one. This
patch introduces a new "old_link" tg3 member and then compares the
phy_device's link member against it to detect link state changes.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-02-23 01:57:17 -05:00
..
2012-01-13 09:32:20 +10:30
2012-02-08 15:07:03 -08:00
2012-01-08 13:10:57 -08:00
2012-02-13 18:31:37 +01:00
2012-02-01 14:46:25 -05:00
2012-02-18 15:37:25 -08:00
2012-02-15 16:24:37 -05:00
2012-02-11 10:07:11 -08:00
2012-02-15 13:09:26 +02:00
2012-02-08 20:03:14 +01:00
2012-01-26 18:36:48 +00:00
2011-12-28 21:35:06 +08:00
2012-01-06 18:15:25 -08:00
2012-01-11 18:53:33 -08:00
2012-01-10 22:01:27 -08:00
2012-02-02 14:00:43 +05:30
2012-01-13 09:32:20 +10:30
2012-01-30 21:33:34 +01:00
2012-01-12 11:53:55 -05:00
2012-02-01 21:59:37 -07:00
2012-02-14 13:36:23 +00:00
2012-02-07 13:40:56 +01:00
2012-01-09 12:09:47 -08:00
2012-02-09 11:21:49 -08:00
2012-02-13 05:40:38 +00:00
2012-02-13 18:31:37 +01:00
2012-01-19 21:26:32 -05:00
2012-02-10 23:32:28 -05:00
2012-02-04 10:57:42 -08:00
2012-01-30 12:53:14 +01:00
2012-02-21 09:04:01 -08:00
2012-02-08 19:03:51 -08:00
2012-01-12 15:44:47 +10:30
2012-02-16 16:15:12 +11:00
2012-02-08 19:06:30 -08:00
2012-01-26 17:04:47 -08:00
2012-01-13 09:32:20 +10:30
2012-01-10 10:36:08 -08:00
2012-02-13 14:16:07 -08:00
2012-02-09 13:51:13 -08:00
2012-02-13 20:39:05 -05:00
2012-02-04 07:17:47 -08:00
2012-02-23 01:57:17 -05:00
2012-01-24 14:21:56 -05:00
2012-01-14 13:25:55 -08:00
2012-01-06 08:02:58 -08:00
2012-01-11 18:50:26 -08:00
2012-01-14 12:32:16 -08:00
2012-02-18 15:26:11 -08:00
2012-02-08 19:03:51 -08:00
2012-02-01 19:35:21 +01:00
2012-01-13 09:32:20 +10:30
2012-01-06 12:11:20 -08:00
2012-02-01 21:34:26 +04:00
2012-02-10 11:20:55 +00:00
2012-02-13 18:31:36 +01:00
2012-02-08 18:50:20 -05:00
2012-02-20 19:34:08 -05:00
2012-01-11 23:29:20 -08:00
2012-02-05 23:24:17 -07:00
2012-02-15 16:24:37 -05:00
2012-02-08 16:19:06 -08:00
2012-02-07 06:48:58 +00:00
2012-01-23 03:15:25 -05:00
2012-02-09 10:48:36 -08:00
2012-01-11 18:50:26 -08:00
2012-02-03 11:22:44 -08:00
2012-01-09 12:09:47 -08:00
2012-01-13 10:12:23 -08:00
2012-02-09 17:56:53 +00:00
2012-01-28 08:10:23 +10:30
2012-01-27 10:01:16 +01:00
2012-02-03 16:07:05 -05:00
2012-01-02 13:04:55 +01:00
2012-01-11 23:58:47 -05:00