diff options
author | David S. Miller <davem@davemloft.net> | 2008-04-03 01:35:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-03 01:35:23 -0400 |
commit | e1ec1b8ccdf0df6000faa8c2d985ca5f94157e5a (patch) | |
tree | 4e1ca325dde22f1ac21c9da0be509e87e922e604 /drivers/net/wireless/rt2x00 | |
parent | c0f39322c335412339dec16ebfd2a05ceba5ebcf (diff) | |
parent | 802fb176d8c635ae42da31b80841c26e8c7338a0 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/s2io.c
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 62b58a6261fe..50ea7bd0c922 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -1252,11 +1252,20 @@ int rt2x00lib_suspend(struct rt2x00_dev *rt2x00dev, pm_message_t state) | |||
1252 | 1252 | ||
1253 | exit: | 1253 | exit: |
1254 | /* | 1254 | /* |
1255 | * Set device mode to sleep for power management. | 1255 | * Set device mode to sleep for power management, |
1256 | * on some hardware this call seems to consistently fail. | ||
1257 | * From the specifications it is hard to tell why it fails, | ||
1258 | * and if this is a "bad thing". | ||
1259 | * Overall it is safe to just ignore the failure and | ||
1260 | * continue suspending. The only downside is that the | ||
1261 | * device will not be in optimal power save mode, but with | ||
1262 | * the radio and the other components already disabled the | ||
1263 | * device is as good as disabled. | ||
1256 | */ | 1264 | */ |
1257 | retval = rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_SLEEP); | 1265 | retval = rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_SLEEP); |
1258 | if (retval) | 1266 | if (retval) |
1259 | return retval; | 1267 | WARNING(rt2x00dev, "Device failed to enter sleep state, " |
1268 | "continue suspending.\n"); | ||
1260 | 1269 | ||
1261 | return 0; | 1270 | return 0; |
1262 | } | 1271 | } |