summaryrefslogtreecommitdiffstats
path: root/commands/usbserial.c
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2012-01-04 10:36:46 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-04 14:18:46 +0100
commiteb98425068297fc26a07e3acf889f38cac4045cf (patch)
tree390c14142ec84fd5f080c0997c9ccc04e485e60b /commands/usbserial.c
parent9350bcca01409552bc56bb34e89b153884eac2b6 (diff)
downloadbarebox-eb98425068297fc26a07e3acf889f38cac4045cf.tar.gz
barebox-eb98425068297fc26a07e3acf889f38cac4045cf.tar.xz
dfu: fill bwPollTimeout and better handle detach
- bwPollTimeout is set to 10 ms, from the DFU spec, this is the minimum time, in milliseconds, that the host should wait before sending a subsequent DFU_GETSTATUS request. Without this, I get 25 seconds value and dfu-util waits twice 25s during download - when in IDLE and receiving DETACH, first return 0 to make dfu-util happy, then use a dfudetach variable to exit dfu (without an USB reset as per the comment on line 425) and return to runtime mode. - tested on i.MX25 & i.MX35 & usb-a926x Signed-off-by: Eric Bénard <eric@eukrea.com> Tested-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/usbserial.c')
0 files changed, 0 insertions, 0 deletions