Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757391AbXJOF5V (ORCPT ); Mon, 15 Oct 2007 01:57:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753539AbXJOF5J (ORCPT ); Mon, 15 Oct 2007 01:57:09 -0400 Received: from wx-out-0506.google.com ([66.249.82.230]:17401 "EHLO wx-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753405AbXJOF5I convert rfc822-to-8bit (ORCPT ); Mon, 15 Oct 2007 01:57:08 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=m4BpRVVzItov85q6Pa3gbrSL+BCB+G9fujfivyxvAmKiC6aXiQM30YEsDaZEjnPiIvsLx/FgUgjSnPF1UP9lbPqS+IFLVQP2VgiQWIPSimOXB9dlMDTaFdoc2a+O0e9g6aGo/5SaZ3m9pjsvFkZNUngO6PNcYXEqrIcCrKRN65Q= Message-ID: Date: Mon, 15 Oct 2007 13:57:05 +0800 From: "Dave Young" To: bbpetkov@yahoo.de Subject: Re: usb+sysfs: duplicate filename 'bInterfaceNumber' Cc: linux-kernel@vger.kernel.org, linux-usb-devel@lists.sourceforge.net, "Greg KH" In-Reply-To: <20071014151538.GA9539@gollum.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Content-Disposition: inline References: <20071014151538.GA9539@gollum.tnic> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3325 Lines: 60 On 10/14/07, Borislav Petkov wrote: > Hi, > > i get the following warning on yesterday's git tree (v2.6.23-2840-g752097c): > > Oct 14 09:07:15 zmei kernel: [ 49.368030] sysfs: duplicate filename 'bInterfaceNumber' can not be created > Oct 14 09:07:15 zmei kernel: [ 49.368086] WARNING: at fs/sysfs/dir.c:425 sysfs_add_one() > Oct 14 09:07:15 zmei kernel: [ 49.368134] [] show_trace_log_lvl+0x1a/0x2f > Oct 14 09:07:15 zmei kernel: [ 49.368220] [] show_trace+0x12/0x14 > Oct 14 09:07:15 zmei kernel: [ 49.368300] [] dump_stack+0x16/0x18 > Oct 14 09:07:15 zmei kernel: [ 49.368379] [] sysfs_add_one+0x57/0xbc > Oct 14 09:07:15 zmei kernel: [ 49.368461] [] sysfs_add_file+0x49/0x71 > Oct 14 09:07:15 zmei kernel: [ 49.368541] [] sysfs_create_group+0x86/0xe8 > Oct 14 09:07:15 zmei kernel: [ 49.368621] [] usb_create_sysfs_intf_files+0x27/0x9b > Oct 14 09:07:15 zmei kernel: [ 49.368704] [] usb_set_configuration+0x454/0x466 > Oct 14 09:07:15 zmei kernel: [ 49.368787] [] generic_probe+0x53/0x94 > Oct 14 09:07:15 zmei kernel: [ 49.368867] [] usb_probe_device+0x35/0x3b > Oct 14 09:07:15 zmei kernel: [ 49.368947] [] driver_probe_device+0xcb/0x14f > Oct 14 09:07:15 zmei kernel: [ 49.369039] [] __device_attach+0x8/0xa > Oct 14 09:07:15 zmei kernel: [ 49.369119] [] bus_for_each_drv+0x3b/0x63 > Oct 14 09:07:15 zmei kernel: [ 49.369199] [] device_attach+0x70/0x85 > Oct 14 09:07:15 zmei kernel: [ 49.369279] [] bus_attach_device+0x29/0x77 > Oct 14 09:07:15 zmei kernel: [ 49.369359] [] device_add+0x28c/0x445 > Oct 14 09:07:15 zmei kernel: [ 49.369439] [] usb_new_device+0x44/0x82 > Oct 14 09:07:15 zmei kernel: [ 49.369519] [] hub_thread+0x666/0x9c2 > Oct 14 09:07:15 zmei kernel: [ 49.369598] [] kthread+0x3b/0x62 > Oct 14 09:07:15 zmei kernel: [ 49.369679] [] kernel_thread_helper+0x7/0x10 > Oct 14 09:07:15 zmei kernel: [ 49.369759] ======================= > > The usb hub in question is named 4-1:1.0 and it has an extension connected to it > which is used to activate the 2 usb connectors at the side of the pc's monitor. > Correct me if i'm wrong but from what i've understood so far from reading the code, > i think, it adds the bInterfaceNumber-file after calling usb_create_sysfs_intf_files(intf). > However, the currently active usbhost interface alternate setting is the only one active > so the bInterfaceNumber exists already and therefore the warning, but this is > just a guess since i'm not that fluent in the usb internals. Hi, I have encountered the same problem which was reported in http://lkml.org/lkml/2007/9/29/45 For the first one "usbcore duplicated sysfs filename" , I have submit a patch to fix it. For the "bInterfaceNumber" one, I have no idea, the same problem still exist in the latest 23-mm1 tree. > > .config attached. > > -- > Regards/Gru?, > Boris. > > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/