lkml.org 
[lkml]   [2008]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/1] toshiba_acpi: Add support for bluetooth toggling through rfkill (v2)
On Wed, 06 Aug 2008, Henrique de Moraes Holschuh wrote:
> Some network drivers want to do it themselves, so now it will be the job of
> every driver to know whether it should do something or not.
>
> To test your platform to know if you will need to do something, just comment
> the rfkill->toggle_radio in rfkill_suspend, and check if your radios are
> still transmitting when you suspend. I really doubt any laptop has that
> problem, though.

Oh, and if you don't have a way to test, you can just call your own private
switch_my_radios_off() function in your driver's suspend() handler. You
don't even have to turn them back on on resume(), as rfkill will always do
that for you.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


\
 
 \ /
  Last update: 2008-08-06 14:53    [W:0.579 / U:1.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site