Re: [PATCH 3/7] AT91 UDC startup fix

2013-03-13 Thread Cerrato Renaud
Inlined patch below. Signed-off-by: Cerrato Renaud r.cerr...@til-technologies.fr --- drivers/usb/gadget/at91_udc.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index 3899db2..0654038 100644 ---

[PATCH 3/7] AT91 UDC startup fix

2013-03-12 Thread Renaud C.
I noticed that depending on boot timings, the USB gadget weren't detected at all by hosts. After few hours of debugging and using the at91clk output, I found that the UDP clock wasn't enabled from time to time. This patch fix the startup of UDC by adding a check into the at91_update_vbus().