[PATCH 1/2] gpio add interrupt support on pca953x

Trilok Soni soni.trilok at gmail.com
Tue Dec 22 07:44:14 EST 2009


Hi,

> +static void pca953x_irq_handler(unsigned int irq, struct irq_desc *desc)
> +{
> +       struct pca953x_chip *chip = desc->handler_data;
> +
> +       desc->chip->ack(irq);
> +       schedule_work(&chip->irq_work);
> +}

Please use threaded IRQ support. Check request_threaded_irq API and I
think wm8350 driver under drivers/mfd/ for example in latest kernel.




-- 
---Trilok Soni
http://triloksoni.wordpress.com
http://www.linkedin.com/in/triloksoni



More information about the linux-arm-kernel mailing list