On Thu, May 11, 2023 at 7:07 PM Jean-Michel Hautbois <jeanmichel.hautbois@xxxxxxxxxx> wrote: > On 11/05/2023 09:49, Andy Shevchenko wrote: > > On Wed, May 10, 2023 at 11:18 PM Jean-Michel Hautbois > > <jeanmichel.hautbois@xxxxxxxxxx> wrote: ... > > In your case I would try the easiest way (taking into account that > > hardware connection is not preventing us from sleeping context), i.e. > > check if the function that has GPIO call may sleep on its own and > > simply replace gpiod_set_value() by gpiod_set_value_cansleep(). > > And I found a patch, which is merged in v6.4-rc1 which does exactly this ! > https://lore.kernel.org/all/20230405135127.769665-1-alexander.stein@xxxxxxxxxxxxxxx/ Ah, cool! > Thanks as it is your advice which made me find it :-p You are welcome! -- With Best Regards, Andy Shevchenko