> To make sure external conditions are satisfied, and we never deadlock: > > if (pd->dev->power.is_suspended) > return -EPERM; /* any other suitable error code? */ > > Perhaps this can even be done in the i2c core instead? Good question! My gut feeling says "i2c core", but that would need more research. I'd say we tackle this in a seperate patch but also for the next merge window. Sounds good?