From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Tue, 10 Dec 2013 11:49:40 +0100 Subject: [U-Boot] [PATCH 2/4] usb: dfu: f_dfu: Provide infrastructure to adjust DFU's Poll Timeout value In-Reply-To: <1386602416-12863-3-git-send-email-l.majewski@samsung.com> References: <1386602416-12863-1-git-send-email-l.majewski@samsung.com> <1386602416-12863-3-git-send-email-l.majewski@samsung.com> Message-ID: <52A6F1C4.7020007@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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 bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany