diff options
author | Heiko Schocher <hs@denx.de> | 2014-04-10 07:08:05 +0200 |
---|---|---|
committer | Lukasz Majewski <l.majewski@samsung.com> | 2014-05-08 10:38:30 +0200 |
commit | ab2f5c12f7ca27b0191ebae90664182510330cd6 (patch) | |
tree | f9e35bb708cdc115ab539425d07d1d38e6589579 /boards.cfg | |
parent | dd5b68fba74371b40963f02d4c237163baa94865 (diff) | |
download | u-boot-imx-ab2f5c12f7ca27b0191ebae90664182510330cd6.zip u-boot-imx-ab2f5c12f7ca27b0191ebae90664182510330cd6.tar.gz u-boot-imx-ab2f5c12f7ca27b0191ebae90664182510330cd6.tar.bz2 |
musb-new, dfu: first send request answer then call completions
comment in ep0_txstate() states:
"report completions as soon as the fifo's loaded; there's no win
in waiting till this last packet gets acked".
This is wrong for using dfu. In the dfu usecase we must send
a PollTimeout to the host, so the host can wait until the
U-Boot Code is ready for answering new usb requests. So the
answer which contains the PollTimeout must send *before*
U-Boot calls req->complete.
The req->complete is used in the dfu case for flushing the
medium, when entering DFU_STATE_dfuMANIFEST_SYNC state.
Change-Id: Ib2941119c72761e48e15fedbdad1ecce07ae0b3d
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'boards.cfg')
0 files changed, 0 insertions, 0 deletions