lkml.org 
[lkml]   [2011]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 02/11] GPIO: DA9052 GPIO module v3
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.


\
 
 \ /
  Last update: 2011-07-07 00:47    [W:0.040 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site