Thread (12 messages) flat view 12 messages, 5 authors, 2007-08-31

Re: [PATCH 2.6.23] ibmebus: Prevent bus_id collisions

From: Arnd Bergmann <arnd@arndb.de>
Date: 2007-08-30 18:22:49
Also in: lkml

On Wednesday 29 August 2007, Joachim Fenkes wrote:
Previously, ibmebus derived a device's bus_id from its location code. The
location code is not guaranteed to be unique, so we might get bus_id
collisions if two devices share the same location code. The OFDT full_name,
however, is unique, so we use that instead.

Signed-off-by: Joachim Fenkes <redacted>
Actually, I think it would be much better to convert the code to be more
like of_platform_device, or to even replace all of ibmebus with that.

The whole logic of dynamically adding and removing device is rather bogus,
and it prevents autoloading of device drivers. of_platform_make_bus_id
is the function that is responsible for creating unique names over there.

	Arnd <><
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help