Hoernchen has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-asf4-dfu/+/42180?usp=email )


Change subject: dfu: do not reset itself
......................................................................

dfu: do not reset itself

In theory USB_DFU_ATTRIBUTES_WILL_DETACH is nice, in practice
not so much, because usb uses control transfers and "waiting" for
status response completion after finishing flashing is cumbersome.
There is basically no advantage if the device resets itself, and
just waiting for the host to do it like most DFU devices work
(and what the BL used to do in the beginning) works
around the status issue.

Change-Id: I1b9e48470083597640918a8a1126922b31150153
---
M usb/class/dfu/device/dfudf_desc.h
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-asf4-dfu refs/changes/80/42180/1

diff --git a/usb/class/dfu/device/dfudf_desc.h 
b/usb/class/dfu/device/dfudf_desc.h
index 50a79e4..102d7fc 100644
--- a/usb/class/dfu/device/dfudf_desc.h
+++ b/usb/class/dfu/device/dfudf_desc.h
@@ -75,7 +75,7 @@
                                   CONF_USB_DFUD_BMATTRI, \
                                   CONF_USB_DFUD_BMAXPOWER)

-#define DFUD_IFACE_DESCB 
USB_DFU_FUNC_DESC_BYTES(USB_DFU_ATTRIBUTES_CAN_DOWNLOAD | 
USB_DFU_ATTRIBUTES_WILL_DETACH, \
+#define DFUD_IFACE_DESCB 
USB_DFU_FUNC_DESC_BYTES(USB_DFU_ATTRIBUTES_CAN_DOWNLOAD, \
                                                     0, /**< detaching makes 
only sense in run-time mode */ \
                                                     512, /**< transfer size 
corresponds to page size for optimal flash writing */ \
                                                     0x0110 /**< DFU 
specification version 1.1 used */ )

--
To view, visit https://gerrit.osmocom.org/c/osmo-asf4-dfu/+/42180?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-asf4-dfu
Gerrit-Branch: master
Gerrit-Change-Id: I1b9e48470083597640918a8a1126922b31150153
Gerrit-Change-Number: 42180
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <[email protected]>

Reply via email to