On Tue, Aug 14, 2018 at 12:16 AM, Stefan Lengfeld <contact@xxxxxxxxxxxxxxx> wrote: > The idea is taken from the PM subsystem and the function > pm_runtime_irq_safe(). Just a side note, please, do not use this exact API (irq_safe in PM) as a good design reference. That is a workaround which has more pain than solves something. I hope that in I2C you meant something different (in terms of design). -- With Best Regards, Andy Shevchenko