]> git.dujemihanovic.xyz Git - u-boot.git/commit
dfu: Detach the controller on error
authorMarek Vasut <marex@denx.de>
Fri, 1 Sep 2023 09:49:55 +0000 (11:49 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 15 Sep 2023 21:38:02 +0000 (23:38 +0200)
commitedd6042d450286d98b20667b20f1ca4e5c579ee0
treefefea5e0e6bb83f32b66f43d64240c34a8bb9a32
parentf032260c7c336cf88c1914286fd42a1588080db3
dfu: Detach the controller on error

In case anything errors out during the DFU registration, detach
the controller instead of bailing out right away. This way, the
controller can be reattached on next attempt.

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: Marek Vasut <marex@denx.de>
common/dfu.c