Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755965AbZGGBz2 (ORCPT ); Mon, 6 Jul 2009 21:55:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754543AbZGGBzT (ORCPT ); Mon, 6 Jul 2009 21:55:19 -0400 Received: from netrider.rowland.org ([192.131.102.5]:44733 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752194AbZGGBzS (ORCPT ); Mon, 6 Jul 2009 21:55:18 -0400 Date: Mon, 6 Jul 2009 21:55:22 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: "Carlos R. Mafra" cc: linux-kernel@vger.kernel.org, , Subject: Re: 2.6.31-rc2 warning in drivers/usb/host/ehci-hcd.c In-Reply-To: <20090706222651.GA6709@Pilar.aei.mpg.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2467 Lines: 49 On Tue, 7 Jul 2009, Carlos R. Mafra wrote: > I was looking at the 'dmesg' output for 2.6.31-rc2 and noticed > this warning > > ------------[ cut here ]------------ > WARNING: at drivers/usb/host/ehci-hcd.c:1048 ehci_endpoint_reset+0xfc/0x140 [ehci_hcd]() > Hardware name: VGN-FZ240E > clear_halt for a busy endpoint > Modules linked in: usbhid nvram dvb_usb_dib0700 dib7000p dib7000m dvb_usb dib3000mc dibx000_common dib0070 option usb_storage usbserial uvc video snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_pcm iwlagn ehci_hcd sky2 snd_timer uhci_hcd i2c_i801 evdev snd_page_alloc sg sr_mod ata_piix ahci libata sd_mod scsi_mod > Pid: 5043, comm: comgt Not tainted 2.6.31-rc2 #109 > Call Trace: > [] ? ehci_endpoint_reset+0xfc/0x140 [ehci_hcd] > [] warn_slowpath_common+0x78/0xd0 > [] warn_slowpath_fmt+0x64/0x70 > [] ? usb_free_urb+0x15/0x20 > [] ? usb_start_wait_urb+0x97/0xe0 > [] ehci_endpoint_reset+0xfc/0x140 [ehci_hcd] > [] usb_hcd_reset_endpoint+0x1d/0x70 > [] usb_reset_endpoint+0x22/0x40 > [] usb_clear_halt+0x66/0x80 > [] option_open+0xcc/0x180 [option] > [] serial_open+0x176/0x240 [usbserial] > [] tty_open+0x1fa/0x530 > [] chrdev_open+0xf5/0x1a0 > [] ? chrdev_open+0x0/0x1a0 > [] __dentry_open+0xd5/0x2f0 > [] nameidata_to_filp+0x57/0x70 > [] do_filp_open+0x71a/0xb10 > [] ? alloc_fd+0x4a/0x140 > [] do_sys_open+0x7f/0x140 > [] sys_open+0x1b/0x20 > [] system_call_fastpath+0x16/0x1b > ---[ end trace f21382a71ff3302a ]--- > > > However I can still use a USB pendrive and everything seems to be fine. This is definitely a bug in the option driver. If you remove the call to usb_clear_halt() in drivers/usb/serial/option.c:option_open(), does the warning go away and does everything continue to work okay? Alan Stern -- 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/