usb: dwc3: gadget: fix OUT eps buffer size alignment issue
authorWu Liang feng <wulf@rock-chips.com>
Mon, 6 Jun 2016 03:30:35 +0000 (11:30 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 7 Jun 2016 06:17:43 +0000 (14:17 +0800)
commitbb6cd1d5aa80b373ebf183426d233d4c09692ed9
tree43b849a3ebbc216df6e5fb569aaa071b67619ddb
parentf9f19c1066ed7ad97e5501b7a6ed9ee3dee9f857
usb: dwc3: gadget: fix OUT eps buffer size alignment issue

Per dwc3 databook "Buffer Size Rules and Zero-Length Packets",
dwc3 needs buffer size to be aligned to MaxPacketSize on ep out.

Change-Id: Iff0e9c29c02c09b93bb34fed178051c02221ecc7
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/dwc3/gadget.c