usb: dwc3: gadget: fix ep->maxburst for ep0
authorPratyush Anand <pratyush.anand@st.com>
Fri, 18 Jan 2013 11:23:56 +0000 (16:23 +0530)
committerFelipe Balbi <balbi@ti.com>
Fri, 18 Jan 2013 12:11:00 +0000 (14:11 +0200)
commit6048e4c69d80600baba35856651056860d5d8f5a
tree29e2f99ef18fb1df1f3d8b9a0acfe4cef53adc34
parent61c4b560e9a42cbc4ce1b95a1bd59b01d449168d
usb: dwc3: gadget: fix ep->maxburst for ep0

dwc3_gadget_set_ep_config expects maxburst as incremented by 1. So, by
default initialize ep->maxburst to 1 for ep0.

Cc: <stable@vger.kernel.org>
Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c