Re: [PATCH 2/2 v4] iio: st_sensors: read surplus samples in trigger

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

 



On Sun, May 8, 2016 at 10:55 AM, Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:

> I thought about it tonight, and I need to add one more thing
> to make the solution perfect: avoid registering the interrupt
> with IRQF_ONESHOT.

After a bunch of tests it appears that this is actually all
that is needed.

The interrupt core will re-wake the thread if a second
IRQ came in to the hardirq (top half) during the processing
of the thread.

As we're checking status and dealing with shared
interrupts this makes sure we never miss events.

> Then we need the top half to tell the bottom half that a new
> IRQ has arrived.

So this is not needed.

Sending a v5.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux