From: Mark Brown Date: Tue, 19 Apr 2011 10:58:38 +0000 Subject: Re: [linux-pm] [PATCH 7/9] PM / Runtime: Add generic clock Message-Id: <20110419105836.GG9462@sirena.org.uk> List-Id: References: <201104130205.26988.rjw@sisk.pl> <201104170135.19388.rjw@sisk.pl> <201104170142.10723.rjw@sisk.pl> In-Reply-To: <201104170142.10723.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Rafael J. Wysocki" Cc: Linux PM mailing list , linux-sh@vger.kernel.org, Greg KH , LKML , Grant Likely On Sun, Apr 17, 2011 at 01:42:10AM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Many different platforms and subsystems may want to disable device > clocks during suspend and enable them during resume which is going to > be done in a very similar way in all those cases. For this reason, > provide generic routines for the manipulation of device clocks during > suspend and resume. > Convert the ARM shmobile platform to using the new routines. I've had similar thoughts with respect to the regulator API - I'd been thinking of dealing with this by adding a notifier which subsystems could build upon, in much the same way as already exists for the system ssuspend and resume events.