usb: gadget: mv_udc: rewrite fifo flush
authorNeil Zhang <zhangwm@marvell.com>
Wed, 12 Oct 2011 08:49:33 +0000 (16:49 +0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Oct 2011 17:42:04 +0000 (20:42 +0300)
1: Add parameter check.
2: For controller endpoint, we need to flush in and out directions.
3: delete redundant code, make it more readable.

Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found