summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorPantelis Antoniou <panto@antoniou-consulting.com>2012-11-30 08:01:10 +0000
committerMarek Vasut <marex@denx.de>2013-03-16 21:12:01 +0100
commit80eb1bd02d1324a6fbd3b41cf72297353496bf2a (patch)
tree12099fe0fd49cba085caba48892fb27601febf9b /drivers/usb
parentdf93cd9c6f620039ddcbbf68e8cfa3c3f0dba76f (diff)
downloadu-boot-imx-80eb1bd02d1324a6fbd3b41cf72297353496bf2a.zip
u-boot-imx-80eb1bd02d1324a6fbd3b41cf72297353496bf2a.tar.gz
u-boot-imx-80eb1bd02d1324a6fbd3b41cf72297353496bf2a.tar.bz2
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/usb')
-rw-r--r--drivers/usb/gadget/f_dfu.c3
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;
}