Re: How to "register" a GSI for a non PCI non ISA device

From: Guillaume Knispel
Date: Thu Jan 26 2012 - 12:30:47 EST


On Thu, 26 Jan 2012 10:24:31 -0700
Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote:

> A driver should never need to use acpi_register_gsi() directly. It
> sounds like you have a non-PCI device that would be described as an
> ACPI device in the DSDT. In the Device definition, you include a _CRS
> method that tells the kernel what GSI it is using. The PNPACPI
> subsystem will parse _CRS and should do the acpi_register_gsi() for
> you. Then your driver would use pnp_register_driver() and pnp_irq()
> to learn the IRQ. drivers/tty/serial/8250_pnp.c is an example.

Thanks a lot, I'll look into it.

--
Guillaume Knispel
Avencall - 10 bis, rue Lucien Voilin - 92800 Puteaux
--
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/