Inlined patch below.
Signed-off-by: Cerrato Renaud
---
drivers/usb/gadget/at91_udc.c | 14 --
drivers/usb/gadget/at91_udc.h |1 +
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c
index 0654038..8ae9119
I noticed some weird behavior using DFU gadget on AT91SAM9260 which worked
1 of 10 times. The bug was due to the usb_gadget_poll() being called while
the previous call was still in progress : some USB calls may takes a lot of
time (ex : DFU erase-then-write), resulting in the poller to be triggered