[U-Boot] [PATCH V4 13/17] usb: gadget: mv_udc: zero transfer descriptor memory on probe
Troy Kisky
troy.kisky at boundarydevices.com
Fri Sep 20 05:29:36 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
---
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 995585d..ea296cc 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