Am Freitag, dem 06.01.2023 um 17:01 +0800 schrieb Herbert Xu: > Markus Stockhausen <markus.stockhausen@xxxxxx> wrote: > > > > + > > + /* Off we go */ > > + rtcr_kick_engine(cdev); > > + if (rtcr_wait_for_request(cdev, dstidx)) > > + return -EINVAL; > > You cannot sleep in this function because it may be called from > softirq context. Instead you should use asynchronous completion. > > Thanks, Hm, I thought that using wait_event() inside the above function should be sufficient to handle that. Any good example of how to achieve that type of completion? Markus