sunxi: musb: Implement dfu_usb_get_reset()
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>
Sun, 25 Oct 2015 04:44:47 +0000 (06:44 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sun, 22 Nov 2015 10:30:59 +0000 (11:30 +0100)
commit6047a3a9c9cf88c38b0b7b99bfeb4edf6661acc8
tree39c098c0e263ed78b1a7a422eda089386dbe8243
parent2a909c5f7a4e645260e5d01313e15371a8c55eba
sunxi: musb: Implement dfu_usb_get_reset()

This is necessary to distinguish between the "dfu-util --detach" and
the "dfu-util --reset" requests.

The default weak implementation of dfu_usb_get_reset() unconditionally
reboots the device, but we want to be able to continue the boot.scr
execution after writing the kernel, fdt and ramdisk to RAM via DFU.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/usb/musb-new/sunxi.c