[PATCH 02/14] mfd: ab8500: provide a irq_set_type() function

Stephen Warren swarren at wwwdotorg.org
Wed Feb 6 19:07:31 EST 2013

On 02/05/2013 12:48 PM, Linus Walleij wrote:
> From: Lee Jones <lee.jones at linaro.org>
> In the AB8500 IRQ mask and unmask functions, we rely on testing for
> physically mask and unmask the correct interrupt lines. In order
> for us to do that, the trigger needs to be set in the associated
> flags. However, unless a irq_set_type() function pointer is passed
> when registering the IRQ chip, the IRQ subsystem will refuse to do
> it. For that reason, we're providing one.

> diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c

> +static int ab8500_irq_set_type(struct irq_data *data, unsigned int type)
> +{
> +	return 0;
> +}

I think patch 0 implied that only rising/falling edges can be detected,
not levels? If so, should that function validate that the requested type
can be supported?

More information about the linux-arm-kernel mailing list