1
0
Fork 0
remarkable-uboot/drivers/usb
Heiko Schocher 001a831986 usb: dfu: introduce dfuMANIFEST state
on nand flash using ubi, after the download of the new image into
the flash, the "rest" of the nand sectors get erased while flushing
the medium. With current u-boot version dfu-util may show:

Starting download: [##################################################] finished!
state(7) = dfuMANIFEST, status(0) = No error condition is present
unable to read DFU status

as get_status is not answered while erasing sectors, if erasing
needs some time.

So do the following changes to prevent this:

- introduce dfuManifest state
  According to dfu specification
  ( http://www.usb.org/developers/devclass_docs/usbdfu10.pdf ) section 7:
  "the device enters the dfuMANIFEST-SYNC state and awaits the solicitation
   of the status report by the host. Upon receipt of the anticipated
   DFU_GETSTATUS, the device enters the dfuMANIFEST state, where it
   completes its reprogramming operations."

- when stepping into dfuManifest state, sending a PollTimeout
  DFU_MANIFEST_POLL_TIMEOUT in ms, to the host, so the host
  (dfu-util) waits the PollTimeout before sending a get_status again.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
2014-03-23 02:20:09 +01:00
..
eth usb: net: introduce support for Moschip USB ethernet 2014-03-12 17:04:31 -04:00
gadget usb: dfu: introduce dfuMANIFEST state 2014-03-23 02:20:09 +01:00
host usb: create common header virtual root hub descriptors 2014-03-10 18:53:36 +01:00
musb usb: create common header virtual root hub descriptors 2014-03-10 18:53:36 +01:00
musb-new kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
phy drivers: usb: convert makefiles to Kbuild style 2013-10-31 13:25:38 -04:00
ulpi drivers: usb: convert makefiles to Kbuild style 2013-10-31 13:25:38 -04:00