From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Jean Delvare <khali@linux-fr.org>
Cc: WANG Cong <xiyou.wangcong@gmail.com>,
linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
Randy Dunlap <rdunlap@xenotime.net>,
Ben Dooks <ben-linux@fluff.org>,
linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org
Subject: Re: [PATCH] i2c: remove deprecated callbacks
Date: Fri, 02 Sep 2011 09:24:18 +1000 [thread overview]
Message-ID: <1314919458.4145.23.camel@pasglop> (raw)
In-Reply-To: <20110901105226.0d8dd8b2@endymion.delvare>
On Thu, 2011-09-01 at 10:52 +0200, Jean Delvare wrote:
> Hi Cong,
>
> On Thu, 1 Sep 2011 12:40:27 +0800, WANG Cong wrote:
> > i2c_driver.attach_adapter and i2c_driver.detach_adapter are deprecated
> > and scheduled to be removed in Sep 2011.
> >
> > Cc: Jean Delvare <khali@linux-fr.org>
> > Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
>
> I'm not sure what you are trying to achieve here.
>
> I am obviously aware of these functions being deprecated, I am the one
> who added the entry in feature-removal-schedule.txt. And as a matter of
> fact, I have a patch ready for months now.
>
> I could understand you sending a patch if the entry had expired long
> ago, but this isn't the case: it is marked for September 2011 and you
> send a patch on September 1st. Hardly a coincidence. While there
> certainly is a benefit in people reading feature-removal-schedule.txt
> and trying to clean it up by closing old (presumably forgotten)
> entries, this doesn't apply here.
Unfortunately I'm not finished converting the Mac drivers...
> Furthermore, you didn't even check if the deprecated callbacks were
> still in use. It turns out that there are 9 drivers still using one of
> them (6 macintosh drivers and 3 sound drivers) so plain removing it
> will cause build breakages. We obviously don't want to do that, so I am
> not going to apply your patch (nor mine) for now.
>
> I know that Benjamin Herrenschmidt is working on converting (some of)
> the macintosh drivers. I don't have any news for some time though. Ben,
> are you done with the conversion by now? It would be great to get it
> merged in kernel 3.2.
I'm just bogged down by too many things, including quite a bit of travel
lately. I have some mostly untested patches converting part of windfarm
(not all of it yet), and therm_adt746x and a patch to add the generic
code to register i2c devices from device-tree properly on powermacs.
I'm missing a couple more drivers & bits of windfarm and therm_pm72
which I'd like to use the opportunity to convert into a windfarm module.
Then there's some sound drivers etc...
I am travelling again tomorrow for 2 weeks, and after that a month in
europe, tho I'll have 10 days in the middle where I _might_ be able to
make progress on that. Else it will have to wait for november.
> Cong, do you have a specific interest in these callbacks being removed?
>
> If you want to help, then instead of sending a patch which I already
> have and virtually everybody could have written, please get the
> remaining 3 drivers converted to the current i2c binding model:
> sound/ppc/keywest.c
> sound/aoa/codecs/onyx.c
> sound/aoa/codecs/tas.c
> THAT would be helpful. At the moment, it only looks like you are trying
> to get your name on a trivial patch, i.e. getting credit for work you
> didn't really do.
Cheers,
Ben.
> >
> > ---
> > diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
> > index c4a6e14..89a9695 100644
> > --- a/Documentation/feature-removal-schedule.txt
> > +++ b/Documentation/feature-removal-schedule.txt
> > @@ -486,15 +486,6 @@ Files: include/linux/netfilter_ipv4/ipt_addrtype.h
> >
> > ----------------------------
> >
> > -What: i2c_driver.attach_adapter
> > - i2c_driver.detach_adapter
> > -When: September 2011
> > -Why: These legacy callbacks should no longer be used as i2c-core offers
> > - a variety of preferable alternative ways to instantiate I2C devices.
> > -Who: Jean Delvare <khali@linux-fr.org>
> > -
> > -----------------------------
> > -
> > (...)
>
next prev parent reply other threads:[~2011-09-01 23:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-01 4:40 [PATCH] i2c: remove deprecated callbacks WANG Cong
2011-09-01 8:52 ` Jean Delvare
2011-09-01 9:12 ` Américo Wang
2011-09-01 13:01 ` Jean Delvare
2011-09-01 23:24 ` Benjamin Herrenschmidt [this message]
2011-09-01 23:32 ` Benjamin Herrenschmidt
2011-09-02 6:28 ` Jean Delvare
[not found] ` <20110902082813.310454af-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-09-02 20:15 ` Benjamin Herrenschmidt
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=1314919458.4145.23.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=akpm@linux-foundation.org \
--cc=ben-linux@fluff.org \
--cc=khali@linux-fr.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@xenotime.net \
--cc=xiyou.wangcong@gmail.com \
/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).