summaryrefslogtreecommitdiffstats
path: root/drivers/net/3c523.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2008-11-04 01:53:46 +0100
committerDavid S. Miller <davem@davemloft.net>2008-11-04 01:53:46 +0100
commit05ac4cb7dff4515447dce6e9a56c4de6b7e426d5 (patch)
tree51445add708f53d22ed919b0b7b5d6f98b102b7c /drivers/net/3c523.h
parenttg3: Move phylib report to end of tg3_init_one (diff)
downloadlinux-05ac4cb7dff4515447dce6e9a56c4de6b7e426d5.tar.xz
linux-05ac4cb7dff4515447dce6e9a56c4de6b7e426d5.zip
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>
Diffstat (limited to 'drivers/net/3c523.h')
0 files changed, 0 insertions, 0 deletions