From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754662Ab3JaQuB (ORCPT ); Thu, 31 Oct 2013 12:50:01 -0400 Received: from mail-ob0-f178.google.com ([209.85.214.178]:34611 "EHLO mail-ob0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751456Ab3JaQt7 (ORCPT ); Thu, 31 Oct 2013 12:49:59 -0400 Date: Thu, 31 Oct 2013 09:49:56 -0700 From: Lee Jones To: Borislav Petkov Cc: lkml , Samuel Ortiz Subject: Re: sysfs: cannot create duplicate filename /bus/i2c/drivers/tps65010 Message-ID: <20131031164956.GC9587@lee--X1> References: <20131031152343.GE10544@pd.tnic> <20131031161352.GA9587@lee--X1> <20131031162706.GF10544@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20131031162706.GF10544@pd.tnic> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > just FYI: I see the below with the attached randconfig on latest -rc7+ > > > (output is a bit funny due to keeping earlyprintk on). > > > > > > [ 0.460026] ------------[ cut here ]------------ > > > [ 0.462726] WARNING: CPU: 0 PID: 1 at fs/sysfs/dir.c:526 sysfs_add_one+0xa0/0xc0() > > > [ 0.464002] sysfs: cannot create duplicate filename '/bus/i2c/drivers/tps65010' > > > [ 0.466018] CPU: 0 PID: 1 Comm: swapper Not tainted 3.12.0-rc7-02023-gf5889fb1b3ba #1 > > > [ 0.468002] 0000000000000009 > > > [ 0.468002] 0000000000000009 ffff88007e44fc20 ffff88007e44fc20 ffffffff89cda7e4 ffffffff89cda7e4 ffff88007e44fc58 ffff88007e44fc58 > > > [ 0.470111] ffffffff89089307 > > > [ 0.470111] ffffffff89089307 00000000ffffffef 00000000ffffffef ffff88007e52cd20 ffff88007e52cd20 ffff88007e44fd00 ffff88007e44fd00 > > > [ 0.473348] ffff88007e549000 > > > [ 0.473348] ffff88007e549000 0000000000000000 0000000000000000 ffff88007e44fcb8 ffff88007e44fcb8 ffffffff890893a7 ffffffff890893a7 > > > [ 0.475453] Call Trace: > > > [ 0.476004] [] dump_stack+0x19/0x1b > > > [ 0.477448] [] warn_slowpath_common+0x67/0x90 > > > [ 0.479108] [] warn_slowpath_fmt+0x47/0x50 > > > [ 0.480003] [] sysfs_add_one+0xa0/0xc0 > > > [ 0.481493] [] create_dir+0x6f/0xe0 > > > [ 0.482910] [] sysfs_create_dir+0x84/0xe0 > > > [ 0.484011] [] kobject_add_internal+0xaf/0x2c0 > > > [ 0.485690] [] kobject_init_and_add+0x60/0x80 > > > [ 0.488010] [] ? __raw_spin_lock_init+0x2d/0x50 > > > [ 0.489721] [] bus_add_driver+0x9e/0x2a0 > > > [ 0.492017] [] ? wm831x_spi_init+0x28/0x28 > > > [ 0.493622] [] driver_register+0x5f/0xf0 > > > [ 0.495160] [] ? wm831x_spi_init+0x28/0x28 > > > [ 0.496018] [] i2c_register_driver+0x27/0xb0 > > > [ 0.497650] [] tps_init+0x34/0x79 > > > [ 0.499041] [] do_one_initcall+0x7c/0x117 > > > [ 0.500011] [] ? parse_args+0x1f8/0x330 > > > [ 0.501522] [] kernel_init_freeable+0x113/0x198 > > > [ 0.504002] [] ? do_early_param+0x88/0x88 > > > [ 0.505587] [] ? rest_init+0x130/0x130 > > > [ 0.507079] [] kernel_init+0x9/0x180 > > > [ 0.508004] [] ret_from_fork+0x7a/0xb0 > > > [ 0.509496] [] ? rest_init+0x130/0x130 > > > [ 0.512011] ---[ end trace 70292a51052b5aeb ]--- > > > > Is this an MFD issue? > > I'd think so because AFAICT it all starts from > drivers/mfd/tps65010.c::tps_init() but I don't know the code so ... What h/w are you attempting to run this on? -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog