]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: dfu: f_dfu: Provide infrastructure to adjust DFU's Poll Timeout value
authorLukasz Majewski <l.majewski@samsung.com>
Mon, 9 Dec 2013 15:20:14 +0000 (16:20 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 18 Dec 2013 18:53:19 +0000 (19:53 +0100)
commit33fac4a6a23b595a2a3cdfa76eddde98d48947b4
tree89606102f29ed22220f2aca2f548188f0a6a5b3a
parent4fb127898e46f0adf9fcca3cfae0987975ef34ec
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>
drivers/usb/gadget/f_dfu.c
drivers/usb/gadget/f_dfu.h
include/dfu.h