On Mon, Nov 30, 2009 at 01:14:20AM -0800, Dmitry Torokhov wrote: > On Mon, Nov 30, 2009 at 10:27:37AM +0200, Mika Westerberg wrote: > > > > BTW: maybe this sharing the IRQ line between multiple buttons could be > > implemented with threaded irq handler? Then it can go to sleep if, for > > some reason, gpio_get_value() sleeps. Unfortunately I don't have such > > hardware so I can't test it. > > > > We still need debounce support there so you still need a timer and a > workqueue. In the current form theraded IRQ will not buy us anything. Yes, but with threaded irq handler it should be possible to find out which gpio line caused the irq (via gpio_get_value()) so we can schedule the correct workqueue handler, right? MW -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html