summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2013-09-25 18:41:14 -0700
committerMarek Vasut <marex@denx.de>2013-10-20 23:42:39 +0200
commit01773ccc0d8d421935dd6ee51b222221a87620ad (patch)
tree4e8861a5163e3af3cbb1dbf887129d42c77b555e /drivers/usb
parent5fc2e99732367e7048f8e29592ef2d7aa7d10d14 (diff)
downloadu-boot-imx-01773ccc0d8d421935dd6ee51b222221a87620ad.zip
u-boot-imx-01773ccc0d8d421935dd6ee51b222221a87620ad.tar.gz
u-boot-imx-01773ccc0d8d421935dd6ee51b222221a87620ad.tar.bz2
usb: gadget: mv_udc: zero transfer descriptor memory on probe
Since we flush the TD, we may as well set it to a known value. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/mv_udc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c
index c56ccff..f91af7e 100644
--- a/drivers/usb/gadget/mv_udc.c
+++ b/drivers/usb/gadget/mv_udc.c
@@ -626,6 +626,7 @@ static int mvudc_probe(void)
free(controller.epts);
return -ENOMEM;
}
+ memset(controller.items_mem, 0, ilist_sz);
for (i = 0; i < 2 * NUM_ENDPOINTS; i++) {
/*