[Barebox] Polling infrastructure causes reentrancy problem

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 8 02:34:26 PST 2021

Hi Christian,

On Fri, Nov 05, 2021 at 01:40:52PM +0100, Christian Eggers wrote:
> Disclaimer: I stumbled over this on barebox 2020.01.
> I haven't tried to reproduce this on the current version.

Please update to a recent barebox. The fastboot commands now run in a
workqueue which itself only runs when we are outside any critical pathes
in barebox.
Particularly fastboot commands will only execute when you called
command_slice_release() beforehand. You'll have to call
command_slice_acquire() before entering any critical pathes like probing
for USB devices.


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