From owner-svn-src-all@FreeBSD.ORG Mon Jun 6 22:03:10 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CCA0106566B; Mon, 6 Jun 2011 22:03:10 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1D0808FC1A; Mon, 6 Jun 2011 22:03:10 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p56M3AIp050949; Mon, 6 Jun 2011 22:03:10 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p56M39jO050947; Mon, 6 Jun 2011 22:03:09 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201106062203.p56M39jO050947@svn.freebsd.org> From: Hans Petter Selasky Date: Mon, 6 Jun 2011 22:03:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r222790 - head/sys/dev/usb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2011 22:03:10 -0000 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: */