From owner-svn-src-all@FreeBSD.ORG Tue Jun 22 20:57:48 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 93B61106564A; Tue, 22 Jun 2010 20:57:48 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 694FA8FC14; Tue, 22 Jun 2010 20:57:48 +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 o5MKvmIP056200; Tue, 22 Jun 2010 20:57:48 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o5MKvmXv056195; Tue, 22 Jun 2010 20:57:48 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <201006222057.o5MKvmXv056195@svn.freebsd.org> From: Andrew Thompson Date: Tue, 22 Jun 2010 20:57:48 +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: r209443 - in 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: Tue, 22 Jun 2010 20:57:48 -0000 Author: thompsa Date: Tue Jun 22 20:57:48 2010 New Revision: 209443 URL: http://svn.freebsd.org/changeset/base/209443 Log: Add support for LOW speed BULK transfers. This mode is not recommended by the USB 2.0 standard, though some USB devices use it anyway. Submitted by: Hans Petter Selasky Modified: head/sys/dev/usb/controller/ehci.c head/sys/dev/usb/controller/ohci.c head/sys/dev/usb/controller/uhci.c head/sys/dev/usb/usb_transfer.c Modified: head/sys/dev/usb/controller/ehci.c ============================================================================== --- head/sys/dev/usb/controller/ehci.c Tue Jun 22 20:52:35 2010 (r209442) +++ head/sys/dev/usb/controller/ehci.c Tue Jun 22 20:57:48 2010 (r209443) @@ -3792,9 +3792,7 @@ ehci_ep_init(struct usb_device *udev, st } break; case UE_BULK: - if (udev->speed != USB_SPEED_LOW) { - ep->methods = &ehci_device_bulk_methods; - } + ep->methods = &ehci_device_bulk_methods; break; default: /* do nothing */ Modified: head/sys/dev/usb/controller/ohci.c ============================================================================== --- head/sys/dev/usb/controller/ohci.c Tue Jun 22 20:52:35 2010 (r209442) +++ head/sys/dev/usb/controller/ohci.c Tue Jun 22 20:57:48 2010 (r209443) @@ -2614,9 +2614,7 @@ ohci_ep_init(struct usb_device *udev, st } break; case UE_BULK: - if (udev->speed != USB_SPEED_LOW) { - ep->methods = &ohci_device_bulk_methods; - } + ep->methods = &ohci_device_bulk_methods; break; default: /* do nothing */ Modified: head/sys/dev/usb/controller/uhci.c ============================================================================== --- head/sys/dev/usb/controller/uhci.c Tue Jun 22 20:52:35 2010 (r209442) +++ head/sys/dev/usb/controller/uhci.c Tue Jun 22 20:57:48 2010 (r209443) @@ -3068,9 +3068,7 @@ uhci_ep_init(struct usb_device *udev, st } break; case UE_BULK: - if (udev->speed != USB_SPEED_LOW) { - ep->methods = &uhci_device_bulk_methods; - } + ep->methods = &uhci_device_bulk_methods; break; default: /* do nothing */ Modified: head/sys/dev/usb/usb_transfer.c ============================================================================== --- head/sys/dev/usb/usb_transfer.c Tue Jun 22 20:52:35 2010 (r209442) +++ head/sys/dev/usb/usb_transfer.c Tue Jun 22 20:57:48 2010 (r209443) @@ -3057,7 +3057,7 @@ usbd_get_std_packet_size(struct usb_std_ }; static const uint16_t bulk_min[USB_SPEED_MAX] = { - [USB_SPEED_LOW] = 0, /* not supported */ + [USB_SPEED_LOW] = 8, [USB_SPEED_FULL] = 8, [USB_SPEED_HIGH] = 512, [USB_SPEED_VARIABLE] = 512,