From: Lee Jones <lee.jones@linaro.org>
To: Wolfram Sang <wsa@the-dreams.de>
Cc: Mark Brown <broonie@kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
Samuel Ortiz <sameo@linux.intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Wang Shilong <wangshilong1991@gmail.com>
Subject: Re: [PATCH 1/4 v2] mfd: add STw481x driver
Date: Mon, 16 Sep 2013 16:34:14 +0100 [thread overview]
Message-ID: <20130916153414.GN16984@lee--X1> (raw)
In-Reply-To: <20130916152104.GA3909@katana>
On Mon, 16 Sep 2013, Wolfram Sang wrote:
>
> On Mon, Sep 16, 2013 at 02:51:18PM +0100, Mark Brown wrote:
> > On Mon, Sep 16, 2013 at 02:44:35PM +0200, Linus Walleij wrote:
> >
> > > I've tried to fix this for DT-only I2C devices
> > > and this very driver was the reason.
> >
> > > But a tiresome regression due to drivers relying on this
> > > i2c_device_id not being NULL and inability to remove it from the I2C
> > > core without refactoring the world ensued, see:
> > > commit c80f52847c50109ca248c22efbf71ff10553dca4
> >
> > Oh, that was the change...
> >
> > > Reverted in:
> > > commit 661f6c1cd926c6c973e03c6b5151d161f3a666ed
> >
> > > For this reason I think:
> > > http://marc.info/?l=linux-next&m=137148411231784&w=2
> >
> > > I have tentatively given up getting pure DT I2C drivers
> > > to probe, I don't think I have the whole picture, but
> > > Wolfram has serious doubts about this and say we have
> > > to be careful ....
> >
> > > Wolfram, do you have some ideas on how we should
> > > proceed or ar you happy with merging this as-is?
> >
> > I'd have expected that it should be possible to change things such that
> > the change in the core doesn't produce any change in behaviour for
> > existing drivers. Can we not change the patch so that i2c_match_id()
> > copes with getting a NULL id_table? Something like this:
>
> I hacked something like this after Linus posted his approach. However, I
> found out that run time instanciating ('new_device' file) needs an
> id_table. I wasn't to keen on disabling the feature for dt-only drivers.
> That's where I stopped, due to lack of time.
So in the mean time are you happy with this "dummy" approach?
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2013-09-16 15:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1379094851-26385-1-git-send-email-linus.walleij@linaro.org>
[not found] ` <20130916091956.GF3999@lee--X1>
[not found] ` <20130916104009.GA29403@sirena.org.uk>
[not found] ` <20130916104009.GA29403-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-09-16 12:44 ` [PATCH 1/4 v2] mfd: add STw481x driver Linus Walleij
2013-09-16 13:51 ` Mark Brown
[not found] ` <20130916135118.GD29403-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-09-16 15:21 ` Wolfram Sang
2013-09-16 15:34 ` Lee Jones [this message]
2013-09-16 16:00 ` Wolfram Sang
2013-09-16 16:05 ` Lee Jones
2013-09-16 16:24 ` Mark Brown
[not found] ` <20130916162428.GE29403-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-09-17 8:06 ` Lee Jones
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=20130916153414.GN16984@lee--X1 \
--to=lee.jones@linaro.org \
--cc=broonie@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.com \
--cc=wangshilong1991@gmail.com \
--cc=wsa@the-dreams.de \
/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).