On Fri, Aug 21, 2015 at 11:05:19AM -0700, Dmitry Torokhov wrote: > On Fri, Aug 21, 2015 at 10:52 AM, Mark Brown wrote: > > More specifically: the managed operations are guaranteed to be run in > > reverse order so so long as the resources used by the managed input > > device are also managed we're supposed to be fine. > That only works if _all_ resources are managed. Here we have an > example of non-managed operations (such as detaching device from a > power domain) in the middle of managed ones. And so the ordering gets > broken. Right, we need to ensure that managed resources don't depend on resources that aren't managed (either directly or indirectly by being handled by some callback which is managed).