diff options
author | Michael Brown | 2015-05-11 15:56:46 +0200 |
---|---|---|
committer | Michael Brown | 2015-05-11 15:56:46 +0200 |
commit | 0eaa3a34bffde2afb0b8f5f5e3b6ad6820564007 (patch) | |
tree | 59599531611c5bec20348ed47f830d988ac56c8e /src/drivers/bus | |
parent | [ipv6] Disambiguate received ICMPv6 errors (diff) | |
download | ipxe-0eaa3a34bffde2afb0b8f5f5e3b6ad6820564007.tar.gz ipxe-0eaa3a34bffde2afb0b8f5f5e3b6ad6820564007.tar.xz ipxe-0eaa3a34bffde2afb0b8f5f5e3b6ad6820564007.zip |
[usb] Add USB_INTERRUPT_OUT internal type
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/bus')
-rw-r--r-- | src/drivers/bus/usb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/bus/usb.c b/src/drivers/bus/usb.c index fd7a2a6f..085caf23 100644 --- a/src/drivers/bus/usb.c +++ b/src/drivers/bus/usb.c @@ -265,7 +265,8 @@ int usb_endpoint_described ( struct usb_endpoint *ep, burst = ( descx ? descx->burst : USB_ENDPOINT_BURST ( sizes ) ); /* Calculate interval */ - if ( type == USB_INTERRUPT ) { + if ( ( type & USB_ENDPOINT_ATTR_TYPE_MASK ) == + USB_ENDPOINT_ATTR_INTERRUPT ) { if ( port->speed >= USB_SPEED_HIGH ) { /* 2^(desc->interval-1) is a microframe count */ interval = ( 1 << ( desc->interval - 1 ) ); |