RE: Question: GPIO driver how to get irq_base

From: Tomoya MORINAGA
Date: Mon May 16 2011 - 22:06:12 EST


Hi,

Modifying parameter of poll ( ) like below, poll ( ) becomes blocked correctly.
pfd.events = POLLPRI | POLLERR
And I can confirm when GPIO driver detects edge changing,
the blocked poll ( ) is released correctly.

Thanks,
-----------------------------------------
Tomoya MORINAGA
OKI SEMICONDUCTOR CO., LTD.

> -----Original Message-----
> From: linux-kernel-owner@xxxxxxxxxxxxxxx
> [mailto:linux-kernel-owner@xxxxxxxxxxxxxxx] On Behalf Of
> Tomoya MORINAGA
> Sent: Monday, May 16, 2011 7:39 PM
> To: 'Lars-Peter Clausen'; 'Grant Likely'
> Cc: linux-kernel@xxxxxxxxxxxxxxx; toshiharu-linux@xxxxxxxxxxxxxxx
> Subject: RE: Question: GPIO driver how to get irq_base
>
> Hi,
>
> Pch_gpio driver can become detecting falling/rising edge.
> I attached the latest GPIO driver, usermode TP and the result.
>
> However, "poll( )" of gpio_tp behavior is different than I
> anticipated.
> The "poll" is not blocked. (The returned value looks good)
>
> My anticipated behavior is
> Execute gpio_tp (blocked at poll( ))
> (Detect edge)
> Interrupt handler of pch_gpio is called
> Blocked poll( ) becomes released.
>
> Let me know your opinion.
>
> With Best Regards,
> -----------------------------------------
> Tomoya MORINAGA
> OKI SEMICONDUCTOR CO., LTD.
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/