From: Wolfgang Grandegger <wg-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
To: Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>
Cc: Linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
Devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
Wolfgang Grandegger <wg-ynQEQJNshbs@public.gmane.org>
Subject: Re: [PATCH v2 1/3] i2c-mpc: use __devinit[data] for initialization functions and data
Date: Wed, 27 Jan 2010 16:14:18 +0100 [thread overview]
Message-ID: <4B60584A.5050605@grandegger.com> (raw)
In-Reply-To: <20100127150801.GC6090-elnMNo+KYs3pIgCt6eIbzw@public.gmane.org>
Ben Dooks wrote:
> On Tue, Jan 26, 2010 at 07:44:10PM +0100, Wolfgang Grandegger wrote:
>> Ben Dooks wrote:
>>> On Mon, Jan 25, 2010 at 09:55:04PM +0100, Wolfgang Grandegger wrote:
[snip]
>>> Any particular reason you decided to move this all about?
>> This was necessary to allow using __devinit[data] for the clock setup
>> functions and clock diviver arrays above which results in some notable
>> saving of memory space if the driver is statically linked into the
>> kernel. If the data is defined within "mpc_i2c_of_match", section
>> mismatches are reported.
>>
>>> Are you sure that __devinitdata is the right thing here, I've no idea
>>> if there is currently any hotplug type support for openfirmware or
>>> not.
>> I agree that __init[data] is more appropriate for this driver even if
>> many other non-hotplugable drivers use __devinit[data]. I will change that.
>
> sorry, may have gotten confused by which type of __init is which, I
> think __devinit is the correct one here.
Why? It's not obvious to me how a i2c device might be hotpugged? Will
require v4 to fix it.
Thanks,
Wolfgang.
WARNING: multiple messages have this Message-ID (diff)
From: Wolfgang Grandegger <wg@grandegger.com>
To: Ben Dooks <ben-linux@fluff.org>
Cc: Devicetree-discuss@lists.ozlabs.org,
Linuxppc-dev@lists.ozlabs.org, Linux-i2c@vger.kernel.org,
Wolfgang Grandegger <wg@denx.de>
Subject: Re: [PATCH v2 1/3] i2c-mpc: use __devinit[data] for initialization functions and data
Date: Wed, 27 Jan 2010 16:14:18 +0100 [thread overview]
Message-ID: <4B60584A.5050605@grandegger.com> (raw)
In-Reply-To: <20100127150801.GC6090@fluff.org.uk>
Ben Dooks wrote:
> On Tue, Jan 26, 2010 at 07:44:10PM +0100, Wolfgang Grandegger wrote:
>> Ben Dooks wrote:
>>> On Mon, Jan 25, 2010 at 09:55:04PM +0100, Wolfgang Grandegger wrote:
[snip]
>>> Any particular reason you decided to move this all about?
>> This was necessary to allow using __devinit[data] for the clock setup
>> functions and clock diviver arrays above which results in some notable
>> saving of memory space if the driver is statically linked into the
>> kernel. If the data is defined within "mpc_i2c_of_match", section
>> mismatches are reported.
>>
>>> Are you sure that __devinitdata is the right thing here, I've no idea
>>> if there is currently any hotplug type support for openfirmware or
>>> not.
>> I agree that __init[data] is more appropriate for this driver even if
>> many other non-hotplugable drivers use __devinit[data]. I will change that.
>
> sorry, may have gotten confused by which type of __init is which, I
> think __devinit is the correct one here.
Why? It's not obvious to me how a i2c device might be hotpugged? Will
require v4 to fix it.
Thanks,
Wolfgang.
next prev parent reply other threads:[~2010-01-27 15:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-25 20:55 [PATCH v2 0/3] i2c-mpc: add support for the Freescale MPC512x and other fixes Wolfgang Grandegger
2010-01-25 20:55 ` Wolfgang Grandegger
[not found] ` <1264452906-32536-1-git-send-email-wg-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
2010-01-25 20:55 ` [PATCH v2 1/3] i2c-mpc: use __devinit[data] for initialization functions and data Wolfgang Grandegger
2010-01-25 20:55 ` Wolfgang Grandegger
[not found] ` <1264452906-32536-2-git-send-email-wg-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
2010-01-25 20:55 ` [PATCH v2 2/3] i2c-mpc: add support for the MPC512x processors from Freescale Wolfgang Grandegger
2010-01-25 20:55 ` Wolfgang Grandegger
[not found] ` <1264452906-32536-3-git-send-email-wg-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
2010-01-25 20:55 ` [PATCH v2 3/3] powerpc: doc/dts-bindings: update doc of FSL I2C bindings Wolfgang Grandegger
2010-01-25 20:55 ` Wolfgang Grandegger
2010-01-26 14:35 ` [PATCH v2 1/3] i2c-mpc: use __devinit[data] for initialization functions and data Ben Dooks
2010-01-26 14:35 ` Ben Dooks
[not found] ` <20100126143507.GA12774-elnMNo+KYs3pIgCt6eIbzw@public.gmane.org>
2010-01-26 18:44 ` Wolfgang Grandegger
2010-01-26 18:44 ` Wolfgang Grandegger
[not found] ` <4B5F37FA.8060809-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
2010-01-27 15:08 ` Ben Dooks
2010-01-27 15:08 ` Ben Dooks
[not found] ` <20100127150801.GC6090-elnMNo+KYs3pIgCt6eIbzw@public.gmane.org>
2010-01-27 15:14 ` Wolfgang Grandegger [this message]
2010-01-27 15:14 ` Wolfgang Grandegger
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=4B60584A.5050605@grandegger.com \
--to=wg-5yr1bzd7o62+xt7jha+gda@public.gmane.org \
--cc=Devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=Linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=Linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
--cc=wg-ynQEQJNshbs@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.