On Tue, May 20, 2014 at 5:15 PM, Thierry Reding <thierry.reding@xxxxxxxxx> wrote: > The component/master helpers don't allow you to do that. Essentially > what it does is provide a way to glue together multiple devices (the > components) to produce a meta-device (the master). What you get is a > pair of .bind()/.unbind() functions that are called on each of the > components when the master binds or unbinds the meta-device. I don't > see how that could be made to work for suspend/resume. We'll we could add a pm_ops pointer to the master and auto-register a pile of suspend/resume hooks to all the component devices. Then we'd suspend the master as soon as the first component gets suspended and resume it only when the last component is resumed. Should be doable with a bunch of refcounts. On top of that we should be able to use runtime pm to do fine-grained pm control for each component. So in my naive world here (never used the component stuff myself after all) this should all work out ;-) -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx