From owner-svn-src-all@FreeBSD.ORG Thu Oct 14 21:26:06 2010 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 E79D2106564A; Thu, 14 Oct 2010 21:26:06 +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 D62A48FC0C; Thu, 14 Oct 2010 21:26:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9ELQ6lX038070; Thu, 14 Oct 2010 21:26:06 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9ELQ6NO038068; Thu, 14 Oct 2010 21:26:06 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201010142126.o9ELQ6NO038068@svn.freebsd.org> From: Hans Petter Selasky Date: Thu, 14 Oct 2010 21:26:06 +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: r213864 - head/sys/dev/usb/controller 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: Thu, 14 Oct 2010 21:26:07 -0000 Author: hselasky Date: Thu Oct 14 21:26:06 2010 New Revision: 213864 URL: http://svn.freebsd.org/changeset/base/213864 Log: Avoid using endless retransmission at EHCI hardware level, hence this hide errors from the applications. Only use endless retransmission while in the non-addressed state on a High-Speed device. Approved by: thompsa (mentor) Modified: head/sys/dev/usb/controller/ehci.c Modified: head/sys/dev/usb/controller/ehci.c ============================================================================== --- head/sys/dev/usb/controller/ehci.c Thu Oct 14 21:19:08 2010 (r213863) +++ head/sys/dev/usb/controller/ehci.c Thu Oct 14 21:26:06 2010 (r213864) @@ -1860,7 +1860,8 @@ ehci_setup_standard_chain(struct usb_xfe temp.auto_data_toggle = 1; } - if (usbd_get_speed(xfer->xroot->udev) != USB_SPEED_HIGH) { + if (xfer->xroot->udev->parent_hs_hub != NULL || + xfer->xroot->udev->address != 0) { /* max 3 retries */ temp.qtd_status |= htohc32(temp.sc, EHCI_QTD_SET_CERR(3));