]> git.baikalelectronics.ru Git - kernel.git/commit
rfkill: disentangle polling pause and suspend
authorJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jan 2016 09:39:23 +0000 (10:39 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 24 Feb 2016 08:04:22 +0000 (09:04 +0100)
commitd7aed8894b1b92cc5c1cb1aacda328d9473f7d34
tree22047c62a10871568f5fa9c17ee14342ebf670da
parented23f9790dfab4a6d5a705baa383bab4a45f5e9a
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>
include/linux/rfkill.h
net/rfkill/core.c