Re: [i2c] [PATCH 0/5] Version 17, series to add device tree naming to i2c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jean Delvare <khali@...>
Cc: <i2c@...>, <linuxppc-dev@...>, <linux-kernel@...>
Date: Friday, January 11, 2008 - 4:16 pm

On 1/11/08, Jean Delvare <khali@linux-fr.org> wrote:

They're aliases.  On the x86 my e1000 Ethernet driver loads using this
alias name:
"pci:v00008086d00001010sv*sd*bc*sc*i*"
In fact, the e1000 driver has 63 alias names in addition to "e1000"

But it's still the e1000 driver after it is loaded.
jonsmirl@terra:/home/linux/drivers/net/e1000$ lsmod | grep e1000
e1000                 115968  0

Loading a I2C driver with an OF alias name is not going to change the
module name after it is loaded. In fact, once the module is in memory
there's no way to tell what name was used to load it.

OF device names are set by the Open Firmware committee. It is not
reasonable to force the Linux names back into Open Firmware since this
would force the other operating systems using Open Firmware to adopt
the Linux names.

This issue hasn't been visible before since there was a global table
in the PowerPC code mapping all known Open Firmware names into linux
names. Keeping this as a global table doesn't scale. The mapping needs
to be done by each device individually.



-- 
Jon Smirl
jonsmirl@gmail.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [i2c] [PATCH 0/5] Version 17, series to add device tree ..., Jon Smirl, (Fri Jan 11, 4:16 pm)
Re: [i2c] [PATCH 0/5] Version 17, series to add device tree ..., Jochen Friedrich, (Fri Jan 11, 12:05 pm)
[PATCH 3/5] Clean up error returns, Jon Smirl, (Thu Dec 20, 12:41 am)