summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-01-20 10:39:23 +0100
committerJohannes Berg <johannes.berg@intel.com>2016-02-24 09:04:22 +0100
commitdd21dfc645d5dce0657af78761b3fa11a3a95398 (patch)
tree22047c62a10871568f5fa9c17ee14342ebf670da /include
parentf06b7ab875037c3d99cd30a07c51caf34fbecb2c (diff)
downloadlinux-dd21dfc645d5dce0657af78761b3fa11a3a95398.tar.bz2
rfkill: disentangle polling pause and suspend
When suspended while polling is paused, polling will erroneously resume at resume time. Fix this by tracking pause and suspend in separate state variable and adding the necessary checks. Clarify the documentation on this as well. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/rfkill.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
index d9010789b4e8..7af625f6d226 100644
--- a/include/linux/rfkill.h
+++ b/include/linux/rfkill.h
@@ -104,7 +104,8 @@ int __must_check rfkill_register(struct rfkill *rfkill);
*
* Pause polling -- say transmitter is off for other reasons.
* NOTE: not necessary for suspend/resume -- in that case the
- * core stops polling anyway
+ * core stops polling anyway (but will also correctly handle
+ * the case of polling having been paused before suspend.)
*/
void rfkill_pause_polling(struct rfkill *rfkill);