Message ID | 1363897842-19835-2-git-send-email-rklein@nvidia.com |
---|---|
State | Not Applicable, archived |
Headers | show |
Hi Rhyland, On Thu, Mar 21, 2013 at 04:30:42PM -0400, Rhyland Klein wrote: > Add irq resources to pass to the charger mfd sub dev so > the charger can listen for interrupts. > > Signed-off-by: Rhyland Klein <rklein@nvidia.com> > --- > v4: > - Added of_compatible string to resources for tps65090-charger > v3: > - no changes since v2 > v2: > - no changes since v1 > > drivers/mfd/tps65090.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) Applied as well, thanks. Cheers, Samuel.
On 4/8/2013 12:01 PM, Samuel Ortiz wrote: > Hi Rhyland, > > On Thu, Mar 21, 2013 at 04:30:42PM -0400, Rhyland Klein wrote: >> Add irq resources to pass to the charger mfd sub dev so >> the charger can listen for interrupts. >> >> Signed-off-by: Rhyland Klein <rklein@nvidia.com> >> --- >> v4: >> - Added of_compatible string to resources for tps65090-charger >> v3: >> - no changes since v2 >> v2: >> - no changes since v1 >> >> drivers/mfd/tps65090.c | 11 +++++++++++ >> 1 file changed, 11 insertions(+) > Applied as well, thanks. > > Cheers, > Samuel. > It looks like the merged version was not V4 but an earlier one. V4 added in the of_compatible string for the charger subnode and I don't see that in the version in linux-next. I guess I'll post a new patch to add that separately. -rhyland
diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index 98edb5be..fbd6ee6 100644 --- a/drivers/mfd/tps65090.c +++ b/drivers/mfd/tps65090.c @@ -56,12 +56,23 @@ #define TPS65090_INT2_MASK_OVERLOAD_FET6 6 #define TPS65090_INT2_MASK_OVERLOAD_FET7 7 +static struct resource charger_resources[] = { + { + .start = TPS65090_IRQ_VAC_STATUS_CHANGE, + .end = TPS65090_IRQ_VAC_STATUS_CHANGE, + .flags = IORESOURCE_IRQ, + } +}; + static struct mfd_cell tps65090s[] = { { .name = "tps65090-pmic", }, { .name = "tps65090-charger", + .num_resources = ARRAY_SIZE(charger_resources), + .resources = &charger_resources[0], + .of_compatible = "ti,tps65090-charger", }, };
Add irq resources to pass to the charger mfd sub dev so the charger can listen for interrupts. Signed-off-by: Rhyland Klein <rklein@nvidia.com> --- v4: - Added of_compatible string to resources for tps65090-charger v3: - no changes since v2 v2: - no changes since v1 drivers/mfd/tps65090.c | 11 +++++++++++ 1 file changed, 11 insertions(+)