From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by ozlabs.org (Postfix) with ESMTP id 3DA76DDE17 for ; Fri, 31 Aug 2007 04:22:42 +1000 (EST) From: Arnd Bergmann To: linuxppc-dev@ozlabs.org Subject: Re: [PATCH 2.6.23] ibmebus: Prevent bus_id collisions Date: Thu, 30 Aug 2007 20:22:23 +0200 References: <200708291815.18197.fenkes@de.ibm.com> In-Reply-To: <200708291815.18197.fenkes@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200708302022.24167.arnd@arndb.de> Cc: Thomas Klein , Jan-Bernd Themann , Joachim Fenkes , LKML , Paul Mackerras , Christoph Raisch , Paul Mackerras , Stefan Roscher List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 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 <><