Re: [PATCH 1/1] toshiba_acpi: Add support for bluetooth togglingthrough rfkill (v2)

From: Henrique de Moraes Holschuh
Date: Wed Aug 06 2008 - 08:50:53 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/