[U-Boot] [PATCH 2/4] usb: dfu: f_dfu: Provide infrastructure to adjust DFU's Poll Timeout value
Heiko Schocher
hs at denx.de
Tue Dec 10 11:49:40 CET 2013
Hello Lukasz,
Am 09.12.2013 16:20, schrieb Lukasz Majewski:
> 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 at samsung.com>
> ---
> drivers/usb/gadget/f_dfu.c | 39 ++++++++++++++++++++++++++++++++++++---
> drivers/usb/gadget/f_dfu.h | 2 ++
> include/dfu.h | 3 +++
> 3 files changed, 41 insertions(+), 3 deletions(-)
Tested on the dxr2 board. "dfu -l" "dfu -U" and "dfu -D" worked.
Tested-by: Heiko Schocher <hs at denx.de>
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
More information about the U-Boot
mailing list