mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: TJ <linux@tjworld.net>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: How? PM suspend resume code in misc driver?
Date: Fri, 20 Mar 2009 07:11:52 +0000	[thread overview]
Message-ID: <1237533112.12021.7.camel@hephaestion> (raw)

I've been trying to figure out how a misc char driver (in this case
acerhk) can link into PM suspend and resume events. I found the patches
from 2008-02 that introduced a 'heavy-handed' mechanism to misc that
were quickly removed by another set of patches in 2008-04.

In the removal patches there is mention of a 'better way of doing it'
but I've not been able to locate any documentation to that end.

The precise requirement is to fix a problem for a user of a laptop that
'forgets' the state of the RF frequency kill switch during suspend. When
the PC resumes the radio is off and the hardware button has to be
manually activated.

The acerhk module is the only way to enable use of the kill-switch on
this PC.

My thought was that if acerhk can link into the PM events it can use the
resume event to re-enable the radio if it was enabled on suspend.

In this particular case it seems from the user's description that the
hardware switch is a momentary push-to-make type rather than a latching
switch that is more common.


             reply	other threads:[~2009-03-20  7:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-20  7:11 TJ [this message]
2009-03-20 11:23 ` Henrique de Moraes Holschuh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1237533112.12021.7.camel@hephaestion \
    --to=linux@tjworld.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®