Re: [PATCH] gpio: Timestamp events in hardirq handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux