dfu: Implementation of target reset after communication with dfu-util's -R switch
authorLukasz Majewski <l.majewski@samsung.com>
Thu, 18 Jul 2013 11:19:14 +0000 (13:19 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 29 Jul 2013 21:01:33 +0000 (23:01 +0200)
commit6bed7ce569fc409843ff2537937ea1b5fd0f694d
treebb17efd44c3e2f69ae3dd0f0a0a6bd31a06a2204
parent6dd30af0fa5c2f509f6f789789151268bdfcde0c
dfu: Implementation of target reset after communication with dfu-util's -R switch

This patch extends dfu code to support transmission with -R switch
specified at dfu-util.

When -R is specified, the extra USB_REQ_DFU_DETACH request is sent after
successful data transmission. Then dfu resources are released and reset
command is issued.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
common/cmd_dfu.c
drivers/dfu/dfu.c
drivers/usb/gadget/f_dfu.c
include/dfu.h