[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJuYYwSQ-HRBU31=nWyzwqEBxj9LeAMOLQQVcAdf89dO9U0-sQ@mail.gmail.com>
Date: Tue, 13 Mar 2012 13:45:24 +0530
From: Thomas Abraham <thomas.abraham@...aro.org>
To: Grant Likely <grant.likely@...retlab.ca>
Cc: linux-kernel@...r.kernel.org, k.lewandowsk@...sung.com,
devicetree-discuss@...ts.ozlabs.org, rob.herring@...xeda.com,
kgene.kim@...sung.com, broonie@...nsource.wolfsonmicro.com,
myungjoo.ham@...sung.com, kyungmin.park@...sung.com,
dg77.kim@...sung.com, linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org
Subject: Re: [PATCH v3 1/2] mfd: add irq domain support for max8997 interrupts
On 13 March 2012 11:35, Thomas Abraham <thomas.abraham@...aro.org> wrote:
> On 13 March 2012 08:58, Grant Likely <grant.likely@...retlab.ca> wrote:
>> On Thu, 23 Feb 2012 18:08:07 +0530, Thomas Abraham <thomas.abraham@...aro.org> wrote:
>>> Add irq domain support for max8997 interrupts. The reverse mapping method
>>> used is linear mapping since the sub-drivers of max8997 such as regulator
>>> and charger drivers can use the max8997 irq_domain to get the linux irq
>>> number for max8997 interrupts. All uses of irq_base in platform data and
>>> max8997 driver private data are removed.
>>>
>>> Cc: Grant Likely <grant.likely@...retlab.ca>
>>> Cc: MyungJoo Ham <myungjoo.ham@...sung.com>
>>> Signed-off-by: Thomas Abraham <thomas.abraham@...aro.org>
>>> ---
>>> arch/arm/mach-exynos/mach-nuri.c | 4 --
>>> arch/arm/mach-exynos/mach-origen.c | 1 -
>>> drivers/mfd/max8997-irq.c | 60 ++++++++++++++++++++--------------
>>> drivers/mfd/max8997.c | 1 -
>>> include/linux/mfd/max8997-private.h | 4 ++-
>>> include/linux/mfd/max8997.h | 1 -
>>> 6 files changed, 38 insertions(+), 33 deletions(-)
[...]
>>
>> Hahaha. The max8997_irqs table is kind of overdone when the group and mask values
>> can be arithmetically derived from the hwirq number..
>
> Yes, I agree. Each group could have maximum of 8 interrupts. Then,
> data->hwirq % 8 will be the group number and data->hwirq & 7 would be
Typo here. group number = data->hwirq >> 3 and mask = data->hwirq & 7.
Thanks,
Thomas.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists