linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Adding interrupt support to gpio-ich driver (possibly via SCI)
@ 2014-04-04 16:25 Guenter Roeck
  2014-04-08  2:48 ` Matthew Garrett
  0 siblings, 1 reply; 5+ messages in thread
From: Guenter Roeck @ 2014-04-04 16:25 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org
  Cc: linux-gpio@vger.kernel.org, Peter Tyser, Mathias Nyman,
	ACPI Devel Maling List

Hi all,

I have an application where I would need interrupt support for the gpio-ich driver.
More specifically, in my application some of the GPIO pins are used to report
interrupt status from a couple of connected chips. This is with a Panther Point
PCH (QM77).

I see that the gpio pins in question (in the 0..15 range) do support interrupts,
but it looks like the only configuration options are to generate SMI, SCI, or NMI.

Is there a clean way to use any of those to implement interrupt support
for this driver ? I thought about hijacking the SCI interrupt by registering
an interrupt handler with acpi_install_sci_handler(), but that would restrict
the driver to kernel only (or the acpi function would have to be exported),
and I have no idea if it would work or, more importantly, if it would be
the best approach to solve the problem, or if the result would be acceptable.
I can figure out the "working" part, but that would not help much if I would
have to carry the patch locally because it is not acceptable for upstream
integration.

Side note: gpio-ich is not currently enabled for Panther Point; that will be
a one-line separate patch for the mfd/lpc_ich driver.

Thanks,
Guenter

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-08  4:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-04 16:25 Adding interrupt support to gpio-ich driver (possibly via SCI) Guenter Roeck
2014-04-08  2:48 ` Matthew Garrett
2014-04-08  3:21   ` Guenter Roeck
2014-04-08  3:31     ` Matthew Garrett
2014-04-08  4:02       ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).