Re: [PATCHv1] staging: Synaptics RMI4 touchpad driver support

From: Dmitry Torokhov
Date: Thu Nov 04 2010 - 07:31:25 EST


Hi Arce,

On Thu, Nov 04, 2010 at 12:45:45AM -0500, Arce, Abraham wrote:
> Hi Naveen, Dmitry,
>
> > From: Naveen Kumar GADDIPATI [mailto:naveen.gaddipati@xxxxxxxxxxxxxx]
> >
> > Hi Arce,
> >
> > I'm also the GPIO pin for interrupt with request threaded irq .
> > I'm passing the irq_type from the platform data.
> > Which irq_type are you using for your platform?
> >
>
> I am using the following flags
>
> IRQF_DISABLED | IRQF_TRIGGER_LOW | IRQF_TRIGGER_FALLING
>
> Should I get rid of the first one, IRQF_DISABLED?
>
> IRQF_DISABLED - keep irqs disabled when calling the action handler
>

You probably want IRQF_TRIGGER_LOW | IRQF_ONESHOT if your interrupt is
level tiggered.

IRQF_TRIGGER_LOW | IRQF_TRIGGER_FALLING mixes edge and level options and
thus I don't think is proper.

--
Dmitry
--
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/