From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> On Mon, 17 Feb 2025 10:16:43 +0100, Johan Korsnes wrote: > Add locking to `vf610_gpio_direction_input|output()` functions. Without > this locking, a race condition exists between concurrent calls to these > functions, potentially leading to incorrect GPIO direction settings. > > To verify the correctness of this fix, a `trylock` patch was applied, > where after a couple of reboots the race was confirmed. I.e., one user > had to wait before acquiring the lock. With this patch the race has not > been encountered. It's worth mentioning that any type of debugging > (printing, tracing, etc.) would "resolve"/hide the issue. > > [...] Applied, thanks! [1/1] gpio: vf610: add locking to gpio direction functions commit: 4e667a1968099c6deadee2313ecd648f8f0a8956 Best regards, -- Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>