All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joey Oravec <joravec@drewtech.com>
To: linux-input@vger.kernel.org
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: shutdown callback needed in serio?
Date: Mon, 19 Sep 2011 15:18:45 -0400	[thread overview]
Message-ID: <4E779595.1070205@drewtech.com> (raw)

Howdy,

I'm writing a serio-based kernel driver for a uart-based chip that my 
company makes. This chip is used on embedded systems and implements 
several features: gpio, rtc, interrupt controller, etc.

One of the features is a power/reset controller. We support one family 
of ARM chips that cannot even reboot themselves. This family has a 
single reset request line that gets asserted for several reasons: 
writing to the shutdown register, low-power suspend, hardware watchdog, 
etc. For normal cases the host should send a serial message to setup the 
desired action (reboot, powerdown) then write to the shutdown register.

Normally shutdown or suspend callbacks are available, but serio does not 
expose these. Should I try to register a child platform_device with 
these callbacks? How is this going to work during reboot and shutdown 
since inputattach must be running in userspace to keep the line 
discipline alive? Will serio disconnect before any the kernel sends 
shutdown notifications?

-joey

                 reply	other threads:[~2011-09-19 19:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4E779595.1070205@drewtech.com \
    --to=joravec@drewtech.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.