Skip to contentSkip to conversation

sysfs: duplicate filename 'card0' can not be created

DISCUSSION Luciano Rocha 2 participants 5 messages Feb 13, 2008 – Feb 14, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

Is this known? I got the error while connecting usb headphones, running vanilla 2.6.24.

Error:

[.361992] usb 1-1.3: new full speed USB device using ehci_hcd and address 13 [.448232] usb 1-1.3: configuration #1 chosen from 1 choice [.506787] sysfs: duplicate filename 'card0' can not be created [.506796] WARNING: at fs/sysfs/dir.c:424 sysfs_add_one() [.506802] Pid: 794, comm: khubd Not tainted 2.6.24lcfs1 #1

[.506819]  [<c04a07cd>] sysfs_add_one+0x54/0xb7
[.506835]  [<c04a1415>] sysfs_create_link+0xbe/0x109
[.506846]  [<c05db991>] device_add+0x132/0x447
[.506856]  [<c057e9ba>] kobject_init+0x27/0x37
[.506866]  [<c05dbf12>] device_create+0x77/0x97
[.506873]  [<c0611fa1>] snd_card_register+0x3f/0x254
[.506883]  [<f083fa71>] usb_driver_claim_interface+0x6b/0x86 [usbcore]
[.506944]  [<f09b7cbb>] usb_audio_probe+0x6c7/0x76e [snd_usb_audio]
[.506990]  [<f083f960>] usb_probe_interface+0xa2/0xda [usbcore]
[.507010]  [<c05dd14b>] driver_sysfs_add+0x36/0x53
[.507018]  [<c05dd2ab>] driver_probe_device+0xdd/0x15a
[.507025]  [<c0688f9a>] klist_next+0x50/0x82
[.507032]  [<c05dd328>] __device_attach+0x0/0x5
[.507037]  [<c05dc7ce>] bus_for_each_drv+0x32/0x58
[.507045]  [<c05dd3a5>] device_attach+0x5d/0x70
[.507049]  [<c05dd328>] __device_attach+0x0/0x5
[.507055]  [<c05dc74f>] bus_attach_device+0x26/0x73
[.507062]  [<c05dbabc>] device_add+0x25d/0x447
[.507073]  [<f083e316>] usb_set_configuration+0x3f6/0x469 [usbcore]
[.507099]  [<f0844ba7>] generic_probe+0x50/0x91 [usbcore]
[.507125]  [<f083f763>] usb_probe_device+0x32/0x37 [usbcore]
[.507142]  [<c05dd2ab>] driver_probe_device+0xdd/0x15a
[.507148]  [<c0688f9a>] klist_next+0x50/0x82
[.507154]  [<c05dd328>] __device_attach+0x0/0x5
[.507159]  [<c05dc7ce>] bus_for_each_drv+0x32/0x58
[.507167]  [<c05dd3a5>] device_attach+0x5d/0x70
[.507172]  [<c05dd328>] __device_attach+0x0/0x5
[.507177]  [<c05dc74f>] bus_attach_device+0x26/0x73
[.507184]  [<c05dbabc>] device_add+0x25d/0x447
[.507195]  [<f0839c0f>] usb_new_device+0x41/0x7e [usbcore]
[.507217]  [<f083ad51>] hub_thread+0x6b6/0xa93 [usbcore]
[.507243]  [<c042fc93>] autoremove_wake_function+0x0/0x35
[.507253]  [<c06895dc>] schedule+0x1e2/0x22e
[.507258]  [<f083a69b>] hub_thread+0x0/0xa93 [usbcore]
[.507276]  [<c042fbd9>] kthread+0x36/0x5d
[.507280]  [<c042fba3>] kthread+0x0/0x5d
[.507285]  [<c0404a1b>] kernel_thread_helper+0x7/0x10
[.507294]  =======================

[.511876] input: USB Audio as /devices/pci0000:00/0000:00:1e.0/0000:02:04.2/usb1/1-1/1-1.3/1-1.3:1.3/input/input7 [.537041] input: USB HID v1.00 Device [USB Audio] on usb-0000:02:04.2-1.3

Signature · 2 lines
Luciano Rocha <[email protected]>
Eurotux Informática, S.A. <http://www.eurotux.com/>
#1 lore raw

At Wed, 13 Feb 2008 14:05:27 +0000,

Quoted 5 lines · Luciano Rocha

Hello,

Is this known? I got the error while connecting usb headphones, running vanilla 2.6.24.

Not known. In which situation does it happen and is reproducible?

Takashi

Quoted 54 lines

Error:

[.361992] usb 1-1.3: new full speed USB device using ehci_hcd and address 13 [.448232] usb 1-1.3: configuration #1 chosen from 1 choice [.506787] sysfs: duplicate filename 'card0' can not be created [.506796] WARNING: at fs/sysfs/dir.c:424 sysfs_add_one() [.506802] Pid: 794, comm: khubd Not tainted 2.6.24lcfs1 #1

[.506819]  [<c04a07cd>] sysfs_add_one+0x54/0xb7
[.506835]  [<c04a1415>] sysfs_create_link+0xbe/0x109
[.506846]  [<c05db991>] device_add+0x132/0x447
[.506856]  [<c057e9ba>] kobject_init+0x27/0x37
[.506866]  [<c05dbf12>] device_create+0x77/0x97
[.506873]  [<c0611fa1>] snd_card_register+0x3f/0x254
[.506883]  [<f083fa71>] usb_driver_claim_interface+0x6b/0x86 [usbcore]
[.506944]  [<f09b7cbb>] usb_audio_probe+0x6c7/0x76e [snd_usb_audio]
[.506990]  [<f083f960>] usb_probe_interface+0xa2/0xda [usbcore]
[.507010]  [<c05dd14b>] driver_sysfs_add+0x36/0x53
[.507018]  [<c05dd2ab>] driver_probe_device+0xdd/0x15a
[.507025]  [<c0688f9a>] klist_next+0x50/0x82
[.507032]  [<c05dd328>] __device_attach+0x0/0x5
[.507037]  [<c05dc7ce>] bus_for_each_drv+0x32/0x58
[.507045]  [<c05dd3a5>] device_attach+0x5d/0x70
[.507049]  [<c05dd328>] __device_attach+0x0/0x5
[.507055]  [<c05dc74f>] bus_attach_device+0x26/0x73
[.507062]  [<c05dbabc>] device_add+0x25d/0x447
[.507073]  [<f083e316>] usb_set_configuration+0x3f6/0x469 [usbcore]
[.507099]  [<f0844ba7>] generic_probe+0x50/0x91 [usbcore]
[.507125]  [<f083f763>] usb_probe_device+0x32/0x37 [usbcore]
[.507142]  [<c05dd2ab>] driver_probe_device+0xdd/0x15a
[.507148]  [<c0688f9a>] klist_next+0x50/0x82
[.507154]  [<c05dd328>] __device_attach+0x0/0x5
[.507159]  [<c05dc7ce>] bus_for_each_drv+0x32/0x58
[.507167]  [<c05dd3a5>] device_attach+0x5d/0x70
[.507172]  [<c05dd328>] __device_attach+0x0/0x5
[.507177]  [<c05dc74f>] bus_attach_device+0x26/0x73
[.507184]  [<c05dbabc>] device_add+0x25d/0x447
[.507195]  [<f0839c0f>] usb_new_device+0x41/0x7e [usbcore]
[.507217]  [<f083ad51>] hub_thread+0x6b6/0xa93 [usbcore]
[.507243]  [<c042fc93>] autoremove_wake_function+0x0/0x35
[.507253]  [<c06895dc>] schedule+0x1e2/0x22e
[.507258]  [<f083a69b>] hub_thread+0x0/0xa93 [usbcore]
[.507276]  [<c042fbd9>] kthread+0x36/0x5d
[.507280]  [<c042fba3>] kthread+0x0/0x5d
[.507285]  [<c0404a1b>] kernel_thread_helper+0x7/0x10
[.507294]  =======================

[.511876] input: USB Audio as /devices/pci0000:00/0000:00:1e.0/0000:02:04.2/usb1/1-1/1-1.3/1-1.3:1.3/input/input7 [.537041] input: USB HID v1.00 Device [USB Audio] on usb-0000:02:04.2-1.3

Signature · 3 lines
Luciano Rocha <[email protected]>
Eurotux Informática, S.A. <http://www.eurotux.com/>
[2  <application/pgp-signature (7bit)>]
#2 lore raw
Quoted 10 lines · Takashi Iwai

At Wed, 13 Feb 2008 14:05:27 +0000,

Quoted 5 lines · Luciano Rocha

Hello,

Is this known? I got the error while connecting usb headphones, running vanilla 2.6.24.

Not known. In which situation does it happen and is reproducible?

Disconnecting and reconnecting doesn't result in error. I'll try a reboot later.

Signature · 2 lines
Luciano Rocha <[email protected]>
Eurotux Informática, S.A. <http://www.eurotux.com/>
#3 lore raw
Quoted 6 lines · Luciano Rocha
Quoted 5 lines · Takashi Iwai

At Wed, 13 Feb 2008 14:05:27 +0000,

Quoted 3 lines · Luciano Rocha

Hello,

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Is this known? I got the error while connecting usb headphones, running vanilla 2.6.24.

Not known. In which situation does it happen and is reproducible?

Disconnecting and reconnecting doesn't result in error. I'll try a reboot later.

After a reboot I still don't get the error (tryed connecting and reconnecting the headset). Do you have any tests you want me to make?

Signature · 2 lines
Luciano Rocha <[email protected]>
Eurotux Informática, S.A. <http://www.eurotux.com/>
#4 lore raw

At Thu, 14 Feb 2008 10:05:44 +0000,

Quoted 12 lines · Luciano Rocha

[1 <text/plain; iso-8859-1 (quoted-printable)>]

Quoted 9 lines · Luciano Rocha
Quoted 8 lines · Takashi Iwai

At Wed, 13 Feb 2008 14:05:27 +0000,

Quoted 5 lines · Luciano Rocha

Hello,

Is this known? I got the error while connecting usb headphones, running vanilla 2.6.24.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Not known. In which situation does it happen and is reproducible?

Disconnecting and reconnecting doesn't result in error. I'll try a reboot later.

After a reboot I still don't get the error (tryed connecting and reconnecting the headset). Do you have any tests you want me to make?

Oh, if this is about replugging, I remember a long-standing bug in usb-audio driver. Basically it happens when the device is reconnected promptly during its device file is being opened. A kind of race condition.

Takashi