[PATCH v2 8/8] board: ten64: start USB stack in late init

Mathew McBride matt at traverse.com.au
Tue Apr 21 03:29:02 CEST 2026


Hi Marek,

On Tue, Apr 21, 2026, at 10:44 AM, Marek Vasut wrote:
> On 4/21/26 2:04 AM, Mathew McBride wrote:
> [snip]
> > + /* Ensure usb storage devices are available to bootflow.
> > + * Additionally, if there is a USB hub on the board,
> > + * it needs to be started to become usable both in U-Boot
> > + * and in any booted OS.
> > + */
> > + if (IS_ENABLED(CONFIG_USB_STORAGE) || IS_ENABLED(CONFIG_USB_ONBOARD_HUB))
> > + usb_init();
> Why not place 'usb start' into 'preboot' script instead ?
> 

I was not aware of preboot, but it looks like that will solve this issue nicely.
I will roll another revision with CONFIG_PREBOOT="usb start" instead of the usb_init() call.
Thanks for the tip!

Best Regards,
Mathew


More information about the U-Boot mailing list