On Thu, Nov 30, 2017 at 10:32 AM, Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx> wrote: > now that you have a hardirq handler, do you even need IRQF_ONESHOT? How > about using the hardirq handler to mask $this gpio's IRQ, then run > thread without IRQF_ONESHOT? This would help a in cases where the IRQ > line is shared. Yeah maybe ... I'm a bit uncertain even about this. We have GPIOs on slow (I2C, SPI) expanders, and they sometimes need to go out and read that to even see what IRQ that fired. With this construction I *think* what happens is that it timestamps it, then figures out (with some slow bus traffic) if this IRQ was even ours and then calls the thread, if it was. If it was not our IRQ the timestamp is just left crufting around. Without shared IRQF_ONESHOT I am worried that something else (shared) will come in between and pollute my timestamp. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html