Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150815
b: refs/heads/master
c: 908209c
h: refs/heads/master
i:
  150813: 3c7f6fe
  150811: ab27dcb
  150807: a39d914
  150799: 25b9e88
  150783: 3130ca7
v: v3
  • Loading branch information
Alan Jenkins authored and John W. Linville committed Jun 10, 2009
1 parent 1e89a0c commit b794079
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 869fb3a46cd18235e6f176328a2d8085ffe2c704
refs/heads/master: 908209c160da8ecb68052111972b7a21310eac3f
7 changes: 4 additions & 3 deletions trunk/include/linux/rfkill.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void rfkill_destroy(struct rfkill *rfkill);
*
* rfkill drivers that get events when the hard-blocked state changes
* use this function to notify the rfkill core (and through that also
* userspace) of the current state -- they should also use this after
* userspace) of the current state. They should also use this after
* resume if the state could have changed.
*
* You need not (but may) call this function if poll_state is assigned.
Expand All @@ -234,8 +234,9 @@ bool __must_check rfkill_set_hw_state(struct rfkill *rfkill, bool blocked);
* rfkill drivers that get events when the soft-blocked state changes
* (yes, some platforms directly act on input but allow changing again)
* use this function to notify the rfkill core (and through that also
* userspace) of the current state -- they should also use this after
* resume if the state could have changed.
* userspace) of the current state. It is not necessary to notify on
* resume; since hibernation can always change the soft-blocked state,
* the rfkill core will unconditionally restore the previous state.
*
* This function can be called in any context, even from within rfkill
* callbacks.
Expand Down
6 changes: 1 addition & 5 deletions trunk/net/rfkill/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,15 +728,11 @@ static int rfkill_resume(struct device *dev)
struct rfkill *rfkill = to_rfkill(dev);
bool cur;

mutex_lock(&rfkill_global_mutex);
cur = rfkill_global_states[rfkill->type].cur;
cur = !!(rfkill->state & RFKILL_BLOCK_SW);
rfkill_set_block(rfkill, cur);
mutex_unlock(&rfkill_global_mutex);

rfkill->suspended = false;

schedule_work(&rfkill->uevent_work);

rfkill_resume_polling(rfkill);

return 0;
Expand Down

0 comments on commit b794079

Please sign in to comment.