diff options
author | Pantelis Antoniou <panto@antoniou-consulting.com> | 2012-11-30 08:01:10 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-03-16 20:12:01 (GMT) |
commit | 80eb1bd02d1324a6fbd3b41cf72297353496bf2a (patch) | |
tree | 12099fe0fd49cba085caba48892fb27601febf9b /drivers | |
parent | df93cd9c6f620039ddcbbf68e8cfa3c3f0dba76f (diff) | |
download | u-boot-80eb1bd02d1324a6fbd3b41cf72297353496bf2a.tar.xz |
dfu: Properly zero out timeout value
Zero out timeout value; letting it filled with undefined values
ends up with the dfu host hanging.
Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/f_dfu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c index 10547e3..a322ae5 100644 --- a/drivers/usb/gadget/f_dfu.c +++ b/drivers/usb/gadget/f_dfu.c @@ -164,6 +164,9 @@ static void handle_getstatus(struct usb_request *req) /* send status response */ dstat->bStatus = f_dfu->dfu_status; + dstat->bwPollTimeout[0] = 0; + dstat->bwPollTimeout[1] = 0; + dstat->bwPollTimeout[2] = 0; dstat->bState = f_dfu->dfu_state; dstat->iString = 0; } |