Comment 41 for bug 888828

Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote : Re: sysfs: cannot create duplicate filename '/class/bluetooth/hci0:1 2'

Just had this problem again, even with latest raring kernel (3.8.0-19). I think this problem is related to the power info of HID devices. Right before the problem occurs there is a "driver failed to report capacity property" message for this device (Apple magic mouse):

[ 6626.030030] power_supply hid-7c:d1:c3:6b:17:08-battery: driver failed to report `capacity' property: -5
[ 6628.045292] ------------[ cut here ]------------
[ 6628.045304] WARNING: at fs/sysfs/dir.c:536 sysfs_add_one+0xd4/0x100()
[ 6628.045306] Hardware name: GJ378AA-ACP a6145.at
[ 6628.045309] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:1d.3/usb8/8-2/8-2:1.0/bluetooth/hci0/hci0:22'
[ 6628.045311] Modules linked in: nls_iso8859_1 hid_magicmouse hid_apple hidp hid xt_multiport iptable_filter ip_tables x_tables pci_stub vboxpci(OF) vboxnetadp(OF) vboxnetflt(OF) vboxdrv(OF) parport_pc ppdev parport bnep rfcomm binfmt_misc btusb dm_crypt arc4 rt73usb rt2x00usb rt2x00lib mac80211 cfg80211 snd_hda_codec_realtek gpio_ich snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd coretemp kvm_intel ath3k kvm bluetooth lpc_ich soundcore serio_raw btrfs zlib_deflate libcrc32c raid10 raid456 async_memcpy async_raid6_recov async_pq async_xor xor async_tx raid6_pq raid0 multipath linear raid1 usb_storage nouveau microcode mxm_wmi wmi video i2c_algo_bit ttm firewire_ohci drm_kms_helper firewire_core crc_itu_t drm ahci libahci e1000e
[ 6628.045398] Pid: 7, comm: kworker/u:0H Tainted: GF O 3.8.0-19-lowlatency #13-Ubuntu
[ 6628.045400] Call Trace:
[ 6628.045408] [<ffffffff8105a8df>] warn_slowpath_common+0x7f/0xc0
[ 6628.045412] [<ffffffff8105a9dc>] warn_slowpath_fmt+0x4c/0x50
[ 6628.045417] [<ffffffff8135b135>] ? strlcat+0x65/0x80
[ 6628.045421] [<ffffffff8120eab4>] sysfs_add_one+0xd4/0x100
[ 6628.045426] [<ffffffff8120ecd8>] create_dir+0x78/0xd0
[ 6628.045430] [<ffffffff8120f026>] sysfs_create_dir+0x86/0xe0
[ 6628.045435] [<ffffffff8135515a>] kobject_add_internal+0x9a/0x210
[ 6628.045439] [<ffffffff8135da81>] ? vsnprintf+0x461/0x640
[ 6628.045443] [<ffffffff8135579c>] kobject_add+0x6c/0xc0
[ 6628.045448] [<ffffffff8145e626>] device_add+0x106/0x6c0
[ 6628.045452] [<ffffffff8145d057>] ? dev_set_name+0x47/0x50
[ 6628.045467] [<ffffffffa036fc64>] hci_conn_add_sysfs+0x44/0x80 [bluetooth]
[ 6628.045479] [<ffffffffa0360715>] hci_conn_complete_evt.isra.49+0xd5/0x3b0 [bluetooth]
[ 6628.045484] [<ffffffff8101ce55>] ? native_sched_clock+0x15/0x80
[ 6628.045495] [<ffffffffa03655c8>] hci_event_packet+0x1a48/0x2c90 [bluetooth]
[ 6628.045501] [<ffffffff81046ac9>] ? default_spin_lock_flags+0x9/0x10
[ 6628.045512] [<ffffffffa035a1bb>] hci_rx_work+0x26b/0x2f0 [bluetooth]
[ 6628.045518] [<ffffffff816d859a>] ? _raw_spin_unlock_irq+0xa/0x40
[ 6628.045523] [<ffffffff81078437>] process_one_work+0x157/0x500
[ 6628.045527] [<ffffffff81079d1d>] worker_thread+0x16d/0x460
[ 6628.045532] [<ffffffff81079bb0>] ? busy_worker_rebind_fn+0x110/0x110
[ 6628.045536] [<ffffffff8107f890>] kthread+0xc0/0xd0
[ 6628.045540] [<ffffffff8107f7d0>] ? kthread_create_on_node+0x120/0x120
[ 6628.045544] [<ffffffff816dfdec>] ret_from_fork+0x7c/0xb0
[ 6628.045548] [<ffffffff8107f7d0>] ? kthread_create_on_node+0x120/0x120
[ 6628.045551] ---[ end trace c854f4f4a251927e ]---