From: David Miller Date: Mon, 06 Nov 2006 00:40:45 +0000 Subject: Re: Strange kernel messages bootinh 2.6.18.2 on an E4000 Message-Id: <20061105.164045.74747398.davem@davemloft.net> List-Id: References: <20061105120547.GA3665@pelagius.h-e-r-e-s-y.com> In-Reply-To: <20061105120547.GA3665@pelagius.h-e-r-e-s-y.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org From: David Miller Date: Sun, 05 Nov 2006 13:27:49 -0800 (PST) > From: andrew@walrond.org > Date: Sun, 5 Nov 2006 12:05:47 +0000 > > > kobject_add failed for fhc with -EEXIST, don't try to register things > > with the same name in the same directory. > > Call Trace: > > [0000000000427ba8] of_device_register+0x2c/0x60 > > [000000000076cf80] scan_one_device+0x8b8/0x924 > > [000000000076d000] scan_tree+0x14/0x3c > > [000000000076d0c4] of_bus_driver_init+0x9c/0xa4 > > [0000000000416b24] init+0x168/0x360 > > [0000000000417578] kernel_thread+0x38/0x48 > > [0000000000416d34] rest_init+0x18/0x34 > > /fhc: Could not register of device. > > > > > > Well, 8 to be precise. (= # slots in the e4000 ?) > > > > Any clues what this is about, and how to fix it? > > This should be easy to fix, thanks for the report. I'll take > a look. You're missing some patches or something. In currnet 2.6.18.2 and also 2.6.19-rc2, the code in of_device.c reads: if (!parent) strcpy(op->dev.bus_id, "root"); else sprintf(op->dev.bus_id, "%08x", dp->node); if (of_device_register(op)) { Therefore it should be registering devices either as "root" or as a unique 8 character hexidecimal number string. "fhc" is neither. Again, you're likely missing some of the recent bug fixes in this area.