[PATCH] usbgadget: autostart: add usbgadget_autostart helper for board code

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Aug 16 23:30:10 PDT 2022


Hello Sascha,

On 16.08.22 09:57, Sascha Hauer wrote:
> The code is a bit hard to follow with the approach of starting the
> gadget exclusively from the setter function of global.usbgadget.autostart
> 
> Can we go with the following approach? It moves the starting of the usb
> gadget to a function that first checks if all prerequisites are
> fulfilled to start the gadget and then starts it if desired.

Just tested it and works for me. Please apply.

Thanks!
Ahmad


-- 
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 |



More information about the barebox mailing list