mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
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
This commit is contained in:
parent
ca9d2489c6
commit
a4cadedb58
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209443
@ -3792,9 +3792,7 @@ ehci_ep_init(struct usb_device *udev, struct usb_endpoint_descriptor *edesc,
|
||||
}
|
||||
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 */
|
||||
|
@ -2614,9 +2614,7 @@ ohci_ep_init(struct usb_device *udev, struct usb_endpoint_descriptor *edesc,
|
||||
}
|
||||
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 */
|
||||
|
@ -3068,9 +3068,7 @@ uhci_ep_init(struct usb_device *udev, struct usb_endpoint_descriptor *edesc,
|
||||
}
|
||||
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 */
|
||||
|
@ -3057,7 +3057,7 @@ usbd_get_std_packet_size(struct usb_std_packet_size *ptr,
|
||||
};
|
||||
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user