From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
Mark Brown <broonie@kernel.org>,
linux-iio@vger.kernel.org, linux-fbdev@vger.kernel.org,
linux-i2c@vger.kernel.org, linux-leds@vger.kernel.org,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
Chanwoo Choi <cw00.choi@samsung.com>,
Tomi Valkeinen <tomi.valkeinen@ti.com>,
lm-sensors@lm-sensors.org, Sebastian Reichel <sre@kernel.org>,
linux-input@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jean Delvare <jdelvare@suse.com>,
Jonathan Cameron <jic23@kernel.org>,
linux-media@vger.kernel.org, rtc-linux@googlegroups.com,
linux-pm@vger.kernel.org,
Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
Guenter Roeck <linux@roeck-us.net>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Wolfram Sang <wsa@the-dreams.de>, Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Sjoerd Simons <sjoerd.simons@collabora.co.uk>,
Lee Jones <lee.jones@linaro.org>, Bryan Wu <cooloney@gmail.com>,
linux-omap@vger.kernel.org, Sakari Ailus <sakari.ailus@iki.fi>,
linux-usb@vger.kernel.org, linux-spi@vger.kernel.org,
Tony Lindgren <tony@atomide.com>,
MyungJoo Ham <myungjoo.ham@samsung.com>,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 00/27] Export I2C and OF module aliases in missing drivers
Date: Thu, 30 Jul 2015 09:35:17 -0700 [thread overview]
Message-ID: <20150730163517.GA13165@dtor-ws> (raw)
In-Reply-To: <1438273132-20926-1-git-send-email-javier@osg.samsung.com>
Hi Javier,
On Thu, Jul 30, 2015 at 06:18:25PM +0200, Javier Martinez Canillas wrote:
> Hello,
>
> Short version:
>
> This series add the missing MODULE_DEVICE_TABLE() for OF and I2C tables
> to export that information so modules have the correct aliases built-in
> and autoloading works correctly.
>
> Longer version:
>
> Currently it's mandatory for I2C drivers to have an I2C device ID table
> regardless if the device was registered using platform data or OF. This
> is because the I2C core needs an I2C device ID table for two reasons:
>
> 1) Match the I2C client with a I2C device ID so a struct i2c_device_id
> is passed to the I2C driver probe() function.
>
> 2) Export the module aliases from the I2C device ID table so userspace
> can auto-load the correct module. This is because i2c_device_uevent
> always reports a MODALIAS of the form i2c:<client->name>.
Why are we not fixing this? We emit specially carved uevent for
ACPI-based devices, why not the same for OF? Platform bus does this...
Thanks.
--
Dmitry
next prev parent reply other threads:[~2015-07-30 16:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 16:18 [PATCH 00/27] Export I2C and OF module aliases in missing drivers Javier Martinez Canillas
2015-07-30 16:18 ` [PATCH 05/27] macintosh: therm_windtunnel: Export I2C module alias information Javier Martinez Canillas
2015-08-18 10:24 ` [05/27] " Michael Ellerman
2015-08-18 10:35 ` Javier Martinez Canillas
2015-08-19 0:51 ` Michael Ellerman
2015-08-19 7:40 ` Javier Martinez Canillas
2015-08-20 8:38 ` Michael Ellerman
2015-07-30 16:18 ` [PATCH 22/27] macintosh: therm_windtunnel: Export OF " Javier Martinez Canillas
2015-08-20 8:38 ` [22/27] " Michael Ellerman
2015-07-30 16:18 ` [PATCH 27/27] i2c: (RFC, don't apply) report OF style modalias when probing using DT Javier Martinez Canillas
2015-07-30 16:35 ` Dmitry Torokhov [this message]
2015-07-30 16:37 ` [PATCH 00/27] Export I2C and OF module aliases in missing drivers Dmitry Torokhov
2015-07-30 17:13 ` Javier Martinez Canillas
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=20150730163517.GA13165@dtor-ws \
--to=dmitry.torokhov@gmail.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=alsa-devel@alsa-project.org \
--cc=benh@kernel.crashing.org \
--cc=broonie@kernel.org \
--cc=cooloney@gmail.com \
--cc=cw00.choi@samsung.com \
--cc=gregkh@linuxfoundation.org \
--cc=javier@osg.samsung.com \
--cc=jdelvare@suse.com \
--cc=jic23@kernel.org \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=lm-sensors@lm-sensors.org \
--cc=mchehab@osg.samsung.com \
--cc=myungjoo.ham@samsung.com \
--cc=rtc-linux@googlegroups.com \
--cc=sakari.ailus@iki.fi \
--cc=sjoerd.simons@collabora.co.uk \
--cc=sre@kernel.org \
--cc=tiwai@suse.com \
--cc=tomi.valkeinen@ti.com \
--cc=tony@atomide.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).