From: Keerthy <j-keerthy@ti.com>
To: Javier Martinez Canillas <javier@dowhile0.org>
Cc: Enric Balletbo Serra <eballetbo@gmail.com>,
Lee Jones <lee.jones@linaro.org>,
Tony Lindgren <tony@atomide.com>, Mark Brown <broonie@kernel.org>,
Jingoo Han <jingoohan1@gmail.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
Tero Kristo <t-kristo@ti.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH v2] mfd: tps65217: Introduce dependency on CONFIG_OF
Date: Sun, 11 Jun 2017 10:50:30 +0530 [thread overview]
Message-ID: <31c8a0f3-885e-c464-f597-29d3894c19f9@ti.com> (raw)
In-Reply-To: <CABxcv=kcJQBYJhZiacCX1xC_hzJrwwcwSQtz8rh8mHtSog8euQ@mail.gmail.com>
On Friday 09 June 2017 05:18 AM, Javier Martinez Canillas wrote:
> On Fri, Jun 9, 2017 at 1:18 AM, Keerthy <j-keerthy@ti.com> wrote:
>
> [snip]
>
>>>
>>>>>
>>>>> -static const struct i2c_device_id tps65217_id_table[] = {
>>>>> - {"tps65217", TPS65217},
>>>>> - { /* sentinel */ }
>>>>> -};
>>>>> -MODULE_DEVICE_TABLE(i2c, tps65217_id_table);
>>>
>>> Unfortunately you can't get rid of this table (yet) since the I2C
>>> subsystem always reports a MODALIAS of the form "i2c:tps65217" even
>>> when the devices have been registered via OF. There are only a couple
>>> of drivers more to clean-up and then I'll post a patch that fixes the
>>> I2C core to report a proper OF modalias. But for now, removing will
>>> mean that module autoload will be broken for this driver.
>>
>> So this means whole logic of probe_new without i2c_device_id is not
>> ready? I will have to revert all that logic right?
>>
>
> No, that's not what I meant.
>
> It's absolutely correct for drivers that can't be build as a module
> (i.e: have a boolean instead of tristate Kconfig symbol) or if you
> want to get rid of the struct i2c_device_id pointed passed to your
> probe callback since isn't used in the driver.
>
> But it's not enough to get rid of the struct i2c_device_id table for
> the reason I mentioned before.
Thanks for clarifying!
>
>> Lee Jones,
>>
>> Does that mean even for LP87565 driver we need MODULE_DEVICE_TABLE for
>> module autoload?
>>
>
> I guess you are talking about [0], right?
>
> Yes, it's needed because the driver can be built as a module.
Okay.
>
> [0]: https://lkml.org/lkml/2017/5/19/394
>
> Best regards,
> Javier
>
next prev parent reply other threads:[~2017-06-11 5:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-08 10:46 Keerthy
2017-06-08 13:32 ` Enric Balletbo Serra
2017-06-08 14:11 ` Javier Martinez Canillas
2017-06-08 23:18 ` Keerthy
2017-06-08 23:48 ` Javier Martinez Canillas
2017-06-11 5:20 ` Keerthy [this message]
2017-06-11 18:12 ` Keerthy
2017-06-11 19:51 ` Javier Martinez Canillas
2017-08-30 5:46 ` Keerthy
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=31c8a0f3-885e-c464-f597-29d3894c19f9@ti.com \
--to=j-keerthy@ti.com \
--cc=b.zolnierkie@samsung.com \
--cc=broonie@kernel.org \
--cc=eballetbo@gmail.com \
--cc=javier@dowhile0.org \
--cc=jingoohan1@gmail.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=t-kristo@ti.com \
--cc=tony@atomide.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
all inboxes | Powered by JetHome®