Re: [i2c] [PATCH] update module-init-tools to support the i2c subsystem
From: Jon Smirl <hidden>
Date: 2008-01-14 14:26:14
Also in:
linux-i2c, lkml
On 1/14/08, Geert Uytterhoeven [off-list ref] wrote:
On Sun, 13 Jan 2008, Jon Smirl wrote:quoted
On 1/13/08, Jean Delvare [off-list ref] wrote:quoted
On Sun, 13 Jan 2008 11:26:07 -0500, Jon Smirl wrote:quoted
On 1/13/08, Jean Delvare [off-list ref] wrote:quoted
On Sun, 13 Jan 2008 10:14:14 -0500, Jon Smirl wrote:quoted
On 1/13/08, Jean Delvare [off-list ref] wrote:quoted
On Mon, 17 Dec 2007 21:39:37 -0500, Jon Smirl wrote:quoted
Follow on to: "Series to add device tree naming to i2c" Teach module-init-tools about the i2c subsystem.Can you please explain what this patch does and why it is nee=
ded?
quoted
quoted
quoted
quoted
quoted
It generates the entries needed for the user space module tools=
to
quoted
quoted
quoted
quoted
quoted
work with the aliases. For example modprobe/depmod. It is a sta=
ndard
quoted
quoted
quoted
quoted
quoted
part of the kernel module system.What entries, where? What can you do after applying your patch th=
at you
quoted
quoted
quoted
quoted
couldn't do before?The drivers you are testing with don't depend on other drivers.They do. I'm testing with the lm90 driver, which depends on the hwmon driver. Both load automatically when the underlying i2c-parport drive=
r
quoted
quoted
instantiate an "adm1032" i2c device.I don't know exactly what those modules tables are used for. I just copied what the other subsystems do. Maybe they are used when you make an initrd to know which drivers to copy into the image.Module-init-tools needs those table to create module aliases in the *.ko files from the MODULE_DEVICE_TABLE(), so udev can load the modules based on the device IDs when the devices appear in sysfs. That's the generic part. How this applies to i2c devices on platforms without Open Firmware device trees is another question. I guess that's where Jean gets confused (i2c_device_id got _removed_ last year, because it didn't make sense (at the time?)).
Last year i2c modules weren't dynamically loadable so it wasn't needed.
With kind regards, Geert Uytterhoeven Software Architect Sony Network and Software Technology Center Europe The Corporate Village =B7 Da Vincilaan 7-D1 =B7 B-1935 Zaventem =B7 Belgi=
um
Phone: +32 (0)2 700 8453 Fax: +32 (0)2 700 8622 E-mail: Geert.Uytterhoeven@sonycom.com Internet: http://www.sony-europe.com/ Sony Network and Software Technology Center Europe A division of Sony Service Centre (Europe) N.V. Registered office: Technologielaan 7 =B7 B-1840 Londerzeel =B7 Belgium VAT BE 0413.825.160 =B7 RPR Brussels Fortis Bank Zaventem =B7 Swift GEBABEBB08A =B7 IBAN BE39001382358619
--=20 Jon Smirl jonsmirl@gmail.com