diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-01-20 10:39:23 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-02-24 09:04:22 +0100 |
commit | dd21dfc645d5dce0657af78761b3fa11a3a95398 (patch) | |
tree | 22047c62a10871568f5fa9c17ee14342ebf670da /include/linux/rfkill.h | |
parent | f06b7ab875037c3d99cd30a07c51caf34fbecb2c (diff) | |
download | lwn-dd21dfc645d5dce0657af78761b3fa11a3a95398.tar.gz lwn-dd21dfc645d5dce0657af78761b3fa11a3a95398.zip |
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/linux/rfkill.h')
-rw-r--r-- | include/linux/rfkill.h | 3 |
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); |