Matt Carlson
05ac4cb7df
tg3: Refine power management and WOL code
...
Commit 12dac0756d357325b107fe6ec24921ec38661839 ("tg3: adapt tg3 to
use reworked PCI PM code") introduced the new PCI PM API to the tg3
driver. The patch was understandably conservative, so this patch
elaborates on that work.
The patch starts by creating a single point in tg3_set_power_state()
to decide whether or not to enable WOL. The rest of the code in
tg3_set_power_state() was then pivoted to use the result of this
decision.
The patch then makes sure the device is allowed to wakeup before
reporting whether or not WOL is currently enabled. The final hunks of
the patch consolidate where the WOL capability and WOL enabled flags
are set to a single location.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-11-03 16:53:46 -08:00
..
2008-10-13 19:01:08 -07:00
2008-09-24 18:59:00 -04:00
2008-10-31 00:17:34 -07:00
2008-09-24 20:49:05 -04:00
2008-11-02 08:00:15 -05:00
2008-10-31 00:56:00 -07:00
2008-07-11 01:11:42 -04:00
2008-10-27 17:06:18 -07:00
2008-10-31 00:52:51 -04:00
2008-10-31 00:53:48 -04:00
2008-10-27 17:47:26 -07:00
2008-10-27 14:49:55 -04:00
2008-10-27 17:47:26 -07:00
2008-10-27 17:47:26 -07:00
2008-10-27 17:06:18 -07:00
2008-10-31 00:17:34 -07:00
2008-10-27 17:47:26 -07:00
2008-10-17 14:41:10 -07:00
2008-10-31 00:53:48 -04:00
2008-11-02 08:00:32 -05:00
2008-08-07 09:55:48 +01:00
2008-10-31 00:17:34 -07:00
2008-10-31 00:17:34 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-16 09:24:52 -07:00
2008-10-27 17:47:26 -07:00
2008-10-27 17:06:18 -07:00
2008-09-24 18:48:56 -04:00
2008-10-27 17:06:18 -07:00
2008-10-31 00:17:34 -07:00
2008-10-31 00:17:34 -07:00
2008-10-31 00:17:34 -07:00
2008-10-31 19:02:35 -04:00
2008-10-27 17:06:18 -07:00
2008-10-13 19:01:08 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-06-10 18:20:17 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-08-07 02:21:05 -04:00
2008-07-04 08:47:51 -04:00
2008-08-07 02:21:03 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-31 00:17:34 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-12 21:02:19 -07:00
2008-10-08 16:29:57 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-12 21:15:17 -07:00
2008-10-08 16:29:57 -07:00
2008-10-27 17:06:18 -07:00
2008-07-18 17:54:17 -07:00
2008-10-09 12:22:38 -07:00
2008-10-27 17:06:18 -07:00
2008-10-09 12:26:41 -07:00
2008-08-13 16:05:38 -07:00
2008-08-13 16:05:37 -07:00
2008-08-13 16:01:48 -07:00
2008-08-13 16:05:38 -07:00
2008-08-14 04:26:38 -04:00
2008-08-13 16:05:37 -07:00
2008-10-31 00:53:48 -04:00
2008-08-13 16:05:37 -07:00
2008-09-03 14:38:00 -07:00
2008-10-27 17:06:18 -07:00
2008-09-22 19:27:10 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:47:26 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-06-24 22:57:16 -04:00
2008-10-31 00:52:26 -04:00
2008-10-27 17:06:18 -07:00
2008-10-13 19:01:08 -07:00
2008-10-27 17:06:18 -07:00
2008-10-31 00:53:48 -04:00
2008-10-27 17:06:18 -07:00
2008-08-07 02:23:19 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-15 11:10:00 -06:00
2008-10-22 07:26:49 -04:00
2008-10-27 17:06:18 -07:00
2008-11-02 08:30:43 -05:00
2008-07-16 17:57:47 -05:00
2008-10-31 00:59:46 -04:00
2008-10-31 00:59:46 -04:00
2008-08-14 04:26:38 -04:00
2008-10-31 00:17:34 -07:00
2008-08-27 05:55:19 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-06-11 21:58:32 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-07-25 15:44:44 +10:00
2008-07-31 16:58:50 -07:00
2008-10-27 17:47:26 -07:00
2008-07-04 08:46:54 -04:00
2008-08-14 04:26:38 -04:00
2008-10-27 17:06:18 -07:00
2008-07-26 12:00:03 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:47:26 -07:00
2008-10-08 19:51:33 -07:00
2008-10-31 00:52:23 -04:00
2008-10-27 17:06:18 -07:00
2008-10-08 16:56:48 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-31 00:00:33 -07:00
2008-08-07 02:23:19 -04:00
2008-10-27 17:06:18 -07:00
2008-06-11 21:58:33 -04:00
2008-10-27 17:06:18 -07:00
2008-10-08 16:29:57 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-29 15:31:53 -07:00
2008-10-31 00:52:23 -04:00
2008-10-27 17:06:18 -07:00
2008-09-24 18:59:00 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-08-29 02:13:32 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-09-24 18:59:00 -04:00
2008-08-07 02:23:19 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-07-20 17:12:34 -07:00
2008-10-16 12:40:26 -07:00
2008-08-14 04:26:38 -04:00
2008-07-20 17:12:34 -07:00
2008-10-31 00:17:34 -07:00
2008-09-21 21:28:51 -07:00
2008-10-17 02:38:35 +11:00
2008-10-27 17:06:18 -07:00
2008-06-03 15:00:14 -04:00
2008-10-27 17:47:26 -07:00
2008-06-03 15:00:27 -04:00
2008-10-31 00:53:48 -04:00
2008-08-07 02:11:14 -04:00
2008-09-24 20:48:08 -04:00
2008-10-26 09:35:05 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-05-22 06:26:21 -04:00
2008-10-31 00:53:48 -04:00
2008-09-24 18:49:04 -04:00
2008-10-27 17:06:18 -07:00
2008-05-30 22:07:17 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-20 11:17:52 +09:00
2008-08-07 02:20:57 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-31 00:52:17 -04:00
2008-10-27 17:06:18 -07:00
2008-08-07 01:55:50 -04:00
2008-07-20 17:12:34 -07:00
2008-11-02 08:34:38 -05:00
2008-10-11 10:09:45 -07:00
2008-10-22 07:00:41 -04:00
2008-10-22 06:22:13 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-07-26 12:00:03 -07:00
2008-10-27 17:06:18 -07:00
2008-08-02 04:39:33 +09:00
2008-08-07 02:23:19 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-08-29 02:13:33 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-08-29 02:14:29 -07:00
2008-10-27 17:06:18 -07:00
2008-08-31 01:23:17 -07:00
2008-08-29 02:14:43 -07:00
2008-10-27 17:06:18 -07:00
2008-10-31 00:53:34 -04:00
2008-07-06 20:48:41 -07:00
2008-09-24 18:59:00 -04:00
2008-11-03 16:53:46 -08:00
2008-11-03 16:52:09 -08:00
2008-10-13 19:01:08 -07:00
2008-05-30 22:18:02 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-06-10 02:22:26 -07:00
2008-10-08 16:29:57 -07:00
2008-09-24 18:59:00 -04:00
2008-10-28 23:02:33 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 15:12:02 -04:00
2008-09-24 18:59:00 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-17 08:58:52 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00