Skip to content

Commit

Permalink
Merge branch 'master' of git://git.denx.de/u-boot-usb
Browse files Browse the repository at this point in the history
  • Loading branch information
trini committed Feb 4, 2016
2 parents 2a5bcaf + 8c9b4d5 commit 94985cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/gadget/dwc2_udc_otg.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,8 @@ static int dwc2_ep_enable(struct usb_ep *_ep,
}

/* hardware _could_ do smaller, but driver doesn't */
if ((desc->bmAttributes == USB_ENDPOINT_XFER_BULK
&& le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)) !=
if ((desc->bmAttributes == USB_ENDPOINT_XFER_BULK &&
le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)) >
ep_maxpacket(ep)) || !get_unaligned(&desc->wMaxPacketSize)) {

debug("%s: bad %s maxpacket\n", __func__, _ep->name);
Expand Down

0 comments on commit 94985cc

Please sign in to comment.