summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/f_dfu.h
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2013-12-09 16:20:14 +0100
committerMarek Vasut <marex@denx.de>2013-12-18 19:53:19 +0100
commit33fac4a6a23b595a2a3cdfa76eddde98d48947b4 (patch)
tree89606102f29ed22220f2aca2f548188f0a6a5b3a /drivers/usb/gadget/f_dfu.h
parent4fb127898e46f0adf9fcca3cfae0987975ef34ec (diff)
downloadtalos-obmc-uboot-33fac4a6a23b595a2a3cdfa76eddde98d48947b4.tar.gz
talos-obmc-uboot-33fac4a6a23b595a2a3cdfa76eddde98d48947b4.zip
usb: dfu: f_dfu: Provide infrastructure to adjust DFU's Poll Timeout value
It is necessary to deter the host from sending subsequent DFU_GETSTATUS request in the case of e.g. writing the buffer to medium. Here the timeout is increased when we fill up the whole buffer. This delay allows eMMC memory to perform its internal operations. Otherwise we end up with HOST's error regarding GET_STATUS receive timeout. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers/usb/gadget/f_dfu.h')
-rw-r--r--drivers/usb/gadget/f_dfu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_dfu.h b/drivers/usb/gadget/f_dfu.h
index cc2c45567b..0c29954add 100644
--- a/drivers/usb/gadget/f_dfu.h
+++ b/drivers/usb/gadget/f_dfu.h
@@ -82,4 +82,6 @@ struct dfu_function_descriptor {
__le16 wTransferSize;
__le16 bcdDFUVersion;
} __packed;
+
+#define DFU_POLL_TIMEOUT_MASK (0xFFFFFFUL)
#endif /* __F_DFU_H_ */
OpenPOWER on IntegriCloud