Skip to content

Commit

Permalink
usb: gadget: net2280: set all byte enables on start
Browse files Browse the repository at this point in the history
Default 0 value can result in unintentional zlp for IN endpoints.

Tested-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Mian Yousaf Kaukab authored and Felipe Balbi committed May 26, 2015
1 parent ea86507 commit 463e104
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/gadget/udc/net2280.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ net2280_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)
tmp |= (ep->is_in << ENDPOINT_DIRECTION);
}

tmp |= (4 << ENDPOINT_BYTE_COUNT);
tmp |= usb_endpoint_num(desc);
tmp |= (ep->ep.maxburst << MAX_BURST_SIZE);
}
Expand Down

0 comments on commit 463e104

Please sign in to comment.