Re: [PATCH 02/11] GPIO: DA9052 GPIO module v3

From: Mark Brown
Date: Wed Jul 06 2011 - 18:45:16 EST


On Wed, Jul 06, 2011 at 10:36:56AM -0600, Grant Likely wrote:

> It looks like this needs to be merged via the MFD tree since it
> depends on the core da9052 driver patch.

Actually that's not such an issue for new MFDs - since the function
drivers all depend on the core driver they can't be enabled in Kconfig
until the MFD part has been merged so don't do any harm.

> > +static int da9052_gpio_to_irq(struct gpio_chip *gc, u32 offset)
> > +{
> > + struct da9052_gpio *gpio = to_da9052_gpio(gc);
> > + struct da9052 *da9052 = gpio->da9052;

> > + return da9052->irq_base + DA9052_IRQ_GPI0 + offset;

> Who allocates the irq_descs for these irqs?

SoP for MFDs is to do this in the core as part of the larger block of
interrupts, the core driver is doing this.
--
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/