usb: ci_udc: Support larger packets
authorStephen Warren <swarren@nvidia.com>
Thu, 24 Apr 2014 23:52:36 +0000 (17:52 -0600)
committerMarek Vasut <marex@denx.de>
Wed, 30 Apr 2014 08:30:57 +0000 (10:30 +0200)
commitf5c03006dd1794362a2be7136fed9e664bc1775b
treef214d46fdf485d4f82b7fd1719ee5bb7f8cd000b
parent672ad18c276e6c37e2e140294ec35ee96ae47d38
usb: ci_udc: Support larger packets

ci_ep_queue() currently only fills in the page0/page1 fields in the
queue item. If the buffer is larger than 4KiB (unaligned) or 8KiB
(page-aligned), then this prevents the HW from knowing where to write
the balance of the data.

Fix this by initializing all 5 pageN pointers, which allows up to
16KiB (potentially non-page-aligned) buffers.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/usb/gadget/ci_udc.c