From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTP id CCA6F48E for ; Mon, 19 May 2014 01:00:11 +0000 (UTC) Received: from mail-qc0-f175.google.com (mail-qc0-f175.google.com [209.85.216.175]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 422331F9F9 for ; Mon, 19 May 2014 01:00:11 +0000 (UTC) Received: by mail-qc0-f175.google.com with SMTP id w7so7959992qcr.34 for ; Sun, 18 May 2014 18:00:10 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1676170.vWBylJTWsK@avalon> References: <1872038.43ncqEMWSx@avalon> <15219046.LHbmDh0AgC@avalon> <1676170.vWBylJTWsK@avalon> Date: Sun, 18 May 2014 19:00:10 -0600 Message-ID: From: Shuah Khan To: Laurent Pinchart Content-Type: text/plain; charset=UTF-8 Cc: ksummit-discuss@lists.linuxfoundation.org Subject: Re: [Ksummit-discuss] [TECH TOPIC] PM dependencies List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, May 15, 2014 at 5:43 PM, Laurent Pinchart wrote: > On Tuesday 13 May 2014 08:26:09 Shuah Khan wrote: >> >> Can we use pm domains concept to solve the problem? As it exists today, it >> probably can't support loosely associated devices, however, could it be >> extended to support handling device groups that don't necessarily share >> power source and/or clock. > > If I understand them properly, power domains model groups of devices that > share common power handling. I'm not sure how they could be used to model PM > dependencies between devices. Feel free to prove me wrong though :-) > >> I started looking at this as a way to solve media device PM issues, >> however I haven't had a chance to experiment with this idea. Right now, PM domains currently support grouping of devices that share power source. What if we extended PM domains to support a concept of logical grouping of devices that have PM dependencies with a way to specify dependency ordering? For example, a media usb device example: The main driver could create a logical power domain and rest of the drivers add their devices to the same domain specifying their dependencies. logical power domain pm handlers can handle ordering. In some cases, there is a need to save and restore state of tuner i2c and the existing save_state and restore_state could be used to within the scope of this logical domain. I think PM domains can definitely be used for media device case, but I am not sure about the specific case you are looking at where there is a clearly identified master driver/device. These are at the moment ideas and I need to do some work to test these theories. :) -- Shuah