Lukasz Majewski 1cc03c5c53 dfu: Provide means to find difference between dfu-util -e and -R
This commit provides distinction between DFU device detach and reset.
The -R behavior is preserved with proper handling of the dfu-util's -e
switch, which detach the DFU device.

By running dfu-util -e; one can force device to finish the execution of
dfu command on target and execute some other scripted commands.

Moreover, some naming has been changed - the dfu_reset() method now is known
as dfu_detach(). New name better reflects the purpose of the code.

It was also necessary to increase the number of usb_gadget_handle_interrupts()
calls since we also must wait for detection of the USB reset event.

Example usage:
1. -e (detach) switch
 dfu-util -a0 -D file1.bin;dfu-util -a3 -D uImage;dfu-util -e

 access to u-boot prompt.

2. -R (reset) switch
 dfu-util -a0 -D file1.bin;dfu-util -R -a3 -D uImage

 target board reset

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
2014-09-02 14:29:28 +02:00
..
2014-08-25 19:25:56 -04:00
2014-07-30 08:48:03 -04:00
2014-07-22 07:44:27 -04:00
2014-07-18 19:42:16 +01:00
2014-07-18 19:42:10 +01:00
2014-05-29 17:45:31 -04:00
2014-02-04 16:32:20 +01:00
2014-02-21 08:42:47 -05:00
2014-03-17 20:05:48 -06:00
2014-05-27 10:21:32 -04:00
2014-06-21 10:06:58 -06:00
2014-05-16 14:54:26 +09:00
2014-08-09 11:16:57 -04:00
2014-08-09 11:16:57 -04:00
2014-08-09 11:16:57 -04:00
2014-07-07 19:47:18 -04:00
2014-06-19 11:18:55 -04:00
2014-02-20 06:48:23 +01:00
2013-09-24 09:10:33 -04:00
2014-05-28 10:58:19 +09:00
2014-06-20 11:54:29 -06:00
2014-08-10 15:25:19 +02:00
2014-08-09 11:17:04 -04:00
2013-09-20 10:30:54 -04:00
2014-07-18 17:53:24 -04:00
2014-05-30 14:03:24 -04:00
2013-11-09 17:21:01 +01:00
2014-08-01 18:44:56 +03:00
2014-08-09 11:17:04 -04:00
2014-03-17 20:05:49 -06:00
2014-08-21 12:01:28 -04:00
2014-08-06 09:12:30 -04:00
2014-02-19 10:47:43 -05:00
2014-06-11 16:27:06 -04:00
2013-12-04 08:11:28 -05:00