From: "Cousson, Benoit" <b-cousson-l0cyMroinI0@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: Balaji T K <balajitk-l0cyMroinI0@public.gmane.org>,
tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org,
Graeme Gregory <gg-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org>,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
Samuel Ortiz <sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Subject: Re: [PATCH v2 03/10] mfd: twl-core: Add initial DT support for twl4030/twl6030
Date: Thu, 5 Jan 2012 11:21:21 +0100 [thread overview]
Message-ID: <4F0579A1.2080102@ti.com> (raw)
In-Reply-To: <20120104181224.GJ15503-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
Hi Grant,
On 1/4/2012 7:12 PM, Grant Likely wrote:
> On Fri, Dec 09, 2011 at 03:02:34PM +0100, Benoit Cousson wrote:
[...]
>> @@ -1183,22 +1187,53 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id)
>> int status;
>> unsigned i;
>> struct twl4030_platform_data *pdata = client->dev.platform_data;
>> + struct device_node *node = client->dev.of_node;
>> u8 temp;
>> int ret = 0;
>>
>> + if (node&& !pdata) {
>> + /*
>> + * XXX: Temporary fake pdata until the information
>> + * is correctly retrieved by every TWL modules from DT.
>> + */
>> + pdata = kzalloc(sizeof(struct twl4030_platform_data),
>> + GFP_KERNEL);
>
> devm_kzalloc() so that it gets cleaned up on remove.
Yep, it was already updated like that in the v4.
>> + if (!pdata) {
>> + status = -ENOMEM;
>> + goto exit;
>> + }
>> +
>> + /*
>> + * XXX: For the moment the IRQs for TWL seems to be encoded in
>> + * the global OMAP space. That should be cleaned to allow
>> + * dynamically adding a new IRQ controller.
>> + */
>> + if ((id->driver_data)& TWL6030_CLASS) {
>> + pdata->irq_base = TWL6030_IRQ_BASE;
>> + pdata->irq_end = pdata->irq_base + TWL6030_BASE_NR_IRQS;
>> + } else {
>> + pdata->irq_base = TWL4030_IRQ_BASE;
>> + pdata->irq_end = pdata->irq_base + TWL4030_BASE_NR_IRQS;
>> + }
>> + irq_domain_add_simple(node, pdata->irq_base);
>
> Yes, you'll want a follow-up patch to convert to dynamically allocated
> irqs... but I've got to merge the final irq_domain work first. :-)
Yes. I already have a version based on Rob's series, but did not push it
since Rob was not confident with the merge of that feature for 3.3.
> Acked-by: Grant Likely<grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Thanks,
Benoit
next prev parent reply other threads:[~2012-01-05 10:21 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 14:02 [PATCH v2 00/10] OMAP4: Add DT support for i2c and twl6030 Benoit Cousson
2011-12-09 14:02 ` [PATCH v2 01/10] ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT Benoit Cousson
2012-01-04 18:04 ` Grant Likely
2011-12-09 14:02 ` [PATCH v2 02/10] i2c: OMAP: Add DT support for i2c controller Benoit Cousson
2011-12-14 1:06 ` Kevin Hilman
2012-01-04 13:36 ` Cousson, Benoit
2012-01-04 18:08 ` Grant Likely
2012-01-04 21:28 ` Kevin Hilman
[not found] ` <87obujb1j2.fsf-l0cyMroinI0@public.gmane.org>
2012-01-04 21:56 ` Grant Likely
2011-12-14 16:58 ` Rob Herring
2011-12-15 15:05 ` Cousson, Benoit
2011-12-15 15:48 ` Rob Herring
2011-12-15 16:09 ` Cousson, Benoit
[not found] ` <1323439361-1647-3-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2011-12-22 8:22 ` Shubhrajyoti
2011-12-09 14:02 ` [PATCH v2 03/10] mfd: twl-core: Add initial DT support for twl4030/twl6030 Benoit Cousson
2011-12-19 12:03 ` Samuel Ortiz
2011-12-19 13:53 ` Cousson, Benoit
[not found] ` <1323439361-1647-4-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2012-01-04 18:12 ` Grant Likely
[not found] ` <20120104181224.GJ15503-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2012-01-05 10:21 ` Cousson, Benoit [this message]
2011-12-09 14:02 ` [PATCH v2 04/10] rtc: rtc-twl: Add DT support for RTC inside twl4030/twl6030 Benoit Cousson
[not found] ` <1323439361-1647-5-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2011-12-19 16:52 ` Cousson, Benoit
2011-12-26 1:18 ` Alessandro Zummo
2011-12-20 15:13 ` Cousson, Benoit
2012-01-04 18:13 ` Grant Likely
2011-12-09 14:02 ` [PATCH v2 05/10] arm/dts: OMAP4: Add i2c controller nodes Benoit Cousson
[not found] ` <1323439361-1647-6-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2012-01-04 18:13 ` Grant Likely
2011-12-09 14:02 ` [PATCH v2 06/10] arm/dts: OMAP3: " Benoit Cousson
[not found] ` <1323439361-1647-7-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2012-01-04 18:14 ` Grant Likely
2011-12-09 14:02 ` [PATCH v2 07/10] arm/dts: omap4-panda: Add twl6030 and i2c EEPROM Benoit Cousson
2011-12-14 5:06 ` Kevin Hilman
2011-12-14 16:50 ` Cousson, Benoit
2011-12-15 0:31 ` Kevin Hilman
[not found] ` <1323439361-1647-8-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2012-01-04 18:14 ` Grant Likely
2011-12-09 14:02 ` [PATCH v2 08/10] arm/dts: omap4-sdp: Add twl6030, i2c3 and i2c4 devices Benoit Cousson
2012-01-04 18:14 ` Grant Likely
2011-12-09 14:02 ` [PATCH v2 09/10] arm/dts: omap3-beagle: Add twl4030 and i2c EEPROM Benoit Cousson
[not found] ` <1323439361-1647-10-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2012-01-04 18:15 ` Grant Likely
2012-01-09 23:24 ` Tabi Timur-B04825
2012-01-10 10:09 ` Cousson, Benoit
2011-12-09 14:02 ` [PATCH v2 10/10] ARM: OMAP2+: board-generic: Remove i2c static init Benoit Cousson
2012-01-04 18:15 ` Grant Likely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F0579A1.2080102@ti.com \
--to=b-cousson-l0cymroini0@public.gmane.org \
--cc=balajitk-l0cyMroinI0@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=gg-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org \
--cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org \
--cc=sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).