public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* OHCI root_port_reset() deadly loop...
@ 2007-10-07  6:53 David Miller
  2007-10-07  7:31 ` David Brownell
  0 siblings, 1 reply; 49+ messages in thread
From: David Miller @ 2007-10-07  6:53 UTC (permalink / raw)
  To: dbrownell; +Cc: linux-usb-users, linux-kernel, greg


When root_port_reset() in ohci-hub.c polls for the end of the reset,
it puts no limit on the loop and will only exit the loop when either
the RH_PS_PRS bit clears or the register returns all 1's (the latter
condition is a recent addition).

If for some reason the bit never clears, we sit here forever and never
exit the loop.

I actually hit this on one of my machines, and I'm trying to track
down what's happening.

Regardless of why my machine is doing this, there absolutely should be
some upper bound put on the number of times we will run through this
loop, perhaps enough such that up to 5 seconds elapses waiting for the
reset bit to clear.  And if it times out we should print a loud
message onto the console, but still try to continue.

Thanks!

^ permalink raw reply	[flat|nested] 49+ messages in thread

end of thread, other threads:[~2007-10-18 14:29 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-07  6:53 OHCI root_port_reset() deadly loop David Miller
2007-10-07  7:31 ` David Brownell
2007-10-07  7:51   ` David Miller
2007-10-08 23:54     ` David Miller
2007-10-09  3:10       ` Greg KH
2007-10-09  3:16         ` David Miller
2007-10-09  3:34           ` David Brownell
2007-10-09  3:42             ` David Miller
2007-10-09  4:39               ` Greg KH
2007-10-09  4:47                 ` David Miller
2007-10-09  5:11                   ` Benjamin Herrenschmidt
2007-10-09  6:06                   ` Greg KH
2007-10-09 19:22                     ` [linux-usb-devel] " David Brownell
2007-10-10 15:32                       ` Alan Stern
2007-10-09  5:00                 ` David Brownell
2007-10-09  5:23                   ` David Miller
2007-10-09  6:43                   ` Benjamin Herrenschmidt
2007-10-09 18:48                     ` David Brownell
2007-10-09 16:01           ` [Linux-usb-users] " Alan Stern
2007-10-09 17:39             ` Greg KH
2007-10-09 18:42               ` Alan Stern
2007-10-09 18:59                 ` David Brownell
2007-10-09 21:27                 ` David Miller
2007-10-09 21:43                   ` David Brownell
2007-10-09 22:00                     ` David Miller
2007-10-10  4:35                       ` David Miller
2007-10-15 22:01                         ` David Miller
2007-10-15 23:39                           ` David Brownell
2007-10-15 23:58                             ` David Miller
2007-10-16 15:23                               ` Alan Stern
2007-10-16 22:06                                 ` David Miller
2007-10-16 22:20                                   ` Greg KH
2007-10-17 15:56                                     ` Alan Stern
2007-10-16 22:08                                 ` David Miller
2007-10-17 15:51                                   ` Alan Stern
2007-10-17 23:03                                     ` David Miller
2007-10-18 14:28                                       ` Alan Stern
2007-10-16 18:26                               ` David Brownell
2007-10-09  4:09       ` David Brownell
2007-10-09  5:13         ` Benjamin Herrenschmidt
2007-10-09  5:26           ` David Miller
2007-10-09  6:37             ` Benjamin Herrenschmidt
2007-10-09  4:36       ` David Brownell
2007-10-09  4:44         ` David Miller
2007-10-09 16:38           ` David Brownell
2007-10-09 20:41             ` David Miller
2007-10-09 20:46               ` Greg KH
2007-10-09 21:05                 ` David Brownell
2007-10-09 21:09               ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox