[PATCH] usb: gadget: f_mass_storage: Move schedule() in sleep_thread()

Patrice CHOTARD patrice.chotard at foss.st.com
Thu Jun 25 09:05:03 CEST 2026



On 6/22/26 20:22, Marek Vasut wrote:
> On 6/22/26 7:18 PM, Patrice Chotard wrote:
>> Move schedule() in order to call it only every 10 loop iteration
>> to avoid useless overhead.
> This really needs more info here. What problem are you solving ? What overhead do you observe ? Why is that a problem ?

Hi Marek

Yes sorry.
I will submit a v2 with the following commit message :

On STM32MP157C-DK2, when aborting the command "ums" using CTRL-C
it may take a while to get the control back on the console, 
sometimes around 1 second.

By moving schedule() in order to call it only every 10 loop iteration
it increases the CTRL+C reactivity.

Thanks
Patrice


More information about the U-Boot mailing list