Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2002 15:10:47 +0200 (CEST)
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        joe@tao.org.uk
Cc:        julian@elischer.org, current@FreeBSD.ORG, joe@FreeBSD.ORG, msch@snafu.de
Subject:   Re: usb lpt borked?
Message-ID:  <200204061310.g36DAlEx000500@Magelan.Leidinger.net>
In-Reply-To: <20020406113151.GA98328@genius.tao.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On  6 Apr, Josef Karthauser wrote:

>> Only my USB mice does something bad, it hangs the system hard on
>> shutdown.
> 
> Try this which Scott Long submitted a few days ago:
> 
> Index: uhci.c
> ===================================================================
> RCS file: /usr/home/ncvs/src/sys/dev/usb/uhci.c,v
> retrieving revision 1.104
> diff -u -r1.104 uhci.c
> --- uhci.c      1 Apr 2002 22:03:37 -0000       1.104
> +++ uhci.c      5 Apr 2002 08:17:03 -0000
> @@ -2051,6 +2051,7 @@
> 		xfer->pipe->intrxfer = 0;
> 	}                                                                                     
> 	uhci_abort_xfer(xfer, USBD_CANCELLED);
> +	usb_transfer_complete(xfer);
>  }                                                                                            
> 
>  /* Close a device interrupt pipe. */

Go for it ("Tested by:		netchild"), the system now doesn't hangs
anymore at shutdown.

But now the printer hangs the system with:
 usb_detach_wait: ulpt0 didn't detach
 ulpt0: detached
when I turn it off (I tried if this fix also solved the ulpt problem,
even if the patch didn't looked so to me).

Savecore gives me a "Parity error on last dump header", so no backtrace.

Bye,
Alexander.

-- 
            Secret hacker rule #11: hackers read manuals.

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204061310.g36DAlEx000500>