RE: [PATCH 01/11] MFD: DA9052 MFD core module v8

From: Ashish Jangam
Date: Sun Dec 04 2011 - 06:50:21 EST



> -----Original Message-----
> From: Mark Brown [mailto:broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx]
> Sent: Friday, December 02, 2011 7:33 PM
> To: Ashish Jangam
> Cc: arnd@xxxxxxxx; sameo@xxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx;
> Dajun; linaro-dev@xxxxxxxxxxxxxxxx
> Subject: Re: [PATCH 01/11] MFD: DA9052 MFD core module v8
>
> On Fri, Dec 02, 2011 at 01:57:49PM +0000, Ashish Jangam wrote:
> > > On Fri, Nov 18, 2011 at 02:49:54PM +0530, Ashish Jangam wrote:
>
> > > > + * Interrupt controller support for Dilaog DA9052 PMICs.
>
> > > This looks very much like it could be replaced with regmap-irq. The
> > > code would be slightly less efficient due to the support for sparse
> > > interrupt registers but it'd be less code.
>
> > regmap-irq has a opaque struct regmap_irq_chip_data which has a member
> > irq_base and this is required for non-primary irqs registration
> > and also the clean-up function regmap_del_irq_chip() requires it.
> > So as of now I will keep the current irq implementation as it is.
>
> I'm not sure how this is relevant to my above comment? The struct is of
> course opaque since it is only used by the implementation.
No issues on that but it has got irq_base as its member which gets initialize in the
function regmap_add_irq_chip() and since this member value is not available
to the user how can the mfd dependent modules like touch, battery etc can register
for interrupt because during irq registration we add irq_base to the irq nmber for
e.g. irq_base + battery_irq



èº{.nÇ+‰·Ÿ®‰­†+%ŠËlzwm…ébëæìr¸›zX§»®w¥Š{ayºÊÚë,j­¢f£¢·hš‹àz¹®w¥¢¸ ¢·¦j:+v‰¨ŠwèjØm¶Ÿÿ¾«‘êçzZ+ƒùšŽŠÝj"ú!¶iO•æ¬z·švØ^¶m§ÿðà nÆàþY&—