lkml.org 
[lkml]   [2008]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: eeepc-laptop rfkill, stupid question #4
Matthew Garrett wrote:
> On Mon, Nov 03, 2008 at 12:16:28PM -0200, Henrique de Moraes Holschuh wrote:
>
>
>> Can you read the state? If so, you need to unconditionally do so on resume
>> (from sleep or hibernation) and rfkill_force_state() it.
>>
>
> The rfkill core actually forces the state on resume, so I think we're
> fine.
>

I think the reason it works is because eeepc-laptop provides a
"get_state" callback. rfkill can call get_state on resume, and if the
state has changed, force it back to the old value. So I think it's ok
as is.

Alan


\
 
 \ /
  Last update: 2008-11-03 15:33    [from the cache]
©2003-2011 Jasper Spaans