aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c13
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
1253exit: 1253exit:
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}