> To make sure external conditions are satisfied, and we never deadlock, > as discussed in v3? > > if (pd->dev->power.is_suspended) > return -EPERM; /* any other suitable error code? */ Let's handle this seperately. I still think this could/should go into the core but haven't had the time to investigate this further.