Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jun 2011 22:03:09 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222790 - head/sys/dev/usb
Message-ID:  <201106062203.p56M39jO050947@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Jun  6 22:03:09 2011
New Revision: 222790
URL: http://svn.freebsd.org/changeset/base/222790

Log:
  Reset clear-stall error counter before setting up the USB control transfers.
  
  MFC after:	14 days

Modified:
  head/sys/dev/usb/usb_transfer.c

Modified: head/sys/dev/usb/usb_transfer.c
==============================================================================
--- head/sys/dev/usb/usb_transfer.c	Mon Jun  6 21:51:35 2011	(r222789)
+++ head/sys/dev/usb/usb_transfer.c	Mon Jun  6 22:03:09 2011	(r222790)
@@ -2928,6 +2928,11 @@ repeat:
 	usbd_transfer_unsetup(udev->ctrl_xfer, USB_CTRL_XFER_MAX);
 
 	/*
+	 * Reset clear stall error counter.
+	 */
+	udev->clear_stall_errors = 0;
+
+	/*
 	 * Try to setup a new USB transfer for the
 	 * default control endpoint:
 	 */



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