Home
last modified time | relevance | path

Searched hist:"5 a78d5db9c90c9dc84212f40a5f2687b7cafc8ec" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpio/
H A Dgpio-sim.cdiff 5a78d5db9c90c9dc84212f40a5f2687b7cafc8ec Tue Aug 01 14:09:51 CDT 2023 Bartosz Golaszewski <bartosz.golaszewski@linaro.org> gpio: sim: mark the GPIO chip as a one that can sleep

Simulated chips use a mutex for synchronization in driver callbacks so
they must not be called from interrupt context. Set the can_sleep field
of the GPIO chip to true to force users to only use threaded irqs.

Fixes: cb8c474e79be ("gpio: sim: new testing module")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>