[U-Boot] [PATCH V5 14/18] usb: gadget: mv_udc: zero transfer descriptor memory on probe
Troy Kisky
troy.kisky at boundarydevices.com
Thu Sep 26 03:41:14 CEST 2013
Since we flush the TD, we may as well set it to a known value.
Signed-off-by: Troy Kisky <troy.kisky at boundarydevices.com>
---
v4: no change
v5: no change
---
drivers/usb/gadget/mv_udc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c
index ff3f3b5..091c566 100644
--- a/drivers/usb/gadget/mv_udc.c
+++ b/drivers/usb/gadget/mv_udc.c
@@ -643,6 +643,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++) {
/*
--
1.8.1.2
More information about the U-Boot
mailing list