On Fri, Sep 10, 2021 at 12:29:31PM +0200, Jules Maselbas wrote: > The dfu command now uses the composite multi gadget to register the usb > functionality. This allows the removal of the usb composite driver from > dfu.c > > As the dfu command is blocking the command slice must be released while > the dfu gadget is running in order to do operations on the file system. > > The usb_dfu_register() function is replaced with usb_dfu_detached() for > the dfu command to return a different value depending on if it has been > interrupted with CTRL-C or if the gadget has been detached. > > Tested-by: Anže Lešnik <anze.lesnik@xxxxxxxxx> > Signed-off-by: Jules Maselbas <jmaselbas@xxxxxxxxx> > > --- > changes in v2: > - Rebased on next: update for the new usbgadget_register() prototype > --- > commands/dfu.c | 29 +++---- > drivers/usb/gadget/dfu.c | 163 +-------------------------------------- > include/usb/dfu.h | 2 +- > 3 files changed, 18 insertions(+), 176 deletions(-) Applied, thanks Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox