]> git.ipfire.org Git - people/ms/u-boot.git/commit
usb: dwc2: refactor submit_bulk_msg to be common
authorStephen Warren <swarren@wwwdotorg.org>
Sun, 8 Mar 2015 05:48:52 +0000 (22:48 -0700)
committerMarek Vasut <marex@denx.de>
Tue, 14 Apr 2015 03:47:58 +0000 (05:47 +0200)
commit7b5e504daef569de8b98acb5e2ba14e42dcf582f
tree15af1a9e0061ec9806d57c47d7d25f121cd5fdc3
parent4a1d21fc529d8c0ff5568e278a1b23abb09901e5
usb: dwc2: refactor submit_bulk_msg to be common

Move the body of submit_bulk_msg() into new function chunk_msg(). This
can be shared with submit_control_msg() to reduce code duplication, and
allow control messages larger than maxpacket.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
drivers/usb/host/dwc2.c