[Bug 655] New: [PATCH] dfu-util - to quick, add sleep

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Tue Jul 24 11:15:58 CEST 2007


           Summary: [PATCH] dfu-util - to quick, add sleep
           Product: OpenMoko
           Version: current svn head
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: OE bitbake recipes  / build system
        AssignedTo: mickey at vanille-media.de
        ReportedBy: nick at anywi.com
                CC: buglog at lists.openmoko.org

For the TAS1020b chip the control requests for completion are slightly to 
quick, so adding a sleep stops the errors from appearing.

Index: src/sam7dfu.c
--- src/sam7dfu.c       (revision 2384)
+++ src/sam7dfu.c       (working copy)
@@ -160,6 +160,7 @@
        switch (dst.bState) {
        case DFU_STATE_dfuMANIFEST_SYNC:
        case DFU_STATE_dfuMANIFEST:
+               sleep(1);
                goto get_status;
        case DFU_STATE_dfuIDLE:

(The break after the goto is unnecessary).

Off-topic remark: usb_rest support in libusb will be available in FreeBSD 
soon, as soon as I've added the patch to the FreeBSD sources and submitted a 
patch to the libusb maintainers.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the buglog mailing list