From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Hunter Subject: Re: [PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support Date: Wed, 6 Jun 2012 20:24:41 -0500 Message-ID: <4FD002D9.8000404@ti.com> References: <4FC7B465.60703@ti.com> <87r4u0ytd9.fsf@ti.com> <4FC7E161.1080400@ti.com> <87d35kyo3v.fsf@ti.com> <4FC7F87C.9080709@ti.com> <87obp3vptz.fsf@ti.com> <4FC8D4F0.6040806@ti.com> <20120602164228.GA14903@mudshark.cambridge.arm.com> <4FCD2C30.8000106@ti.com> <4FCE0746.2090505@ti.com> <20120606173331.GB19478@mudshark.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from comal.ext.ti.com ([198.47.26.152]:59678 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757466Ab2FGBYn (ORCPT ); Wed, 6 Jun 2012 21:24:43 -0400 In-Reply-To: <20120606173331.GB19478@mudshark.cambridge.arm.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Will Deacon Cc: Kevin Hilman , linux-omap , Ming Lei , Benoit Cousson , Paul Walmsley Hi Will, On 06/06/2012 12:33 PM, Will Deacon wrote: > On Tue, Jun 05, 2012 at 02:19:02PM +0100, Jon Hunter wrote: >> Hi Will, > > Hi Jon, > >> On 06/04/2012 04:44 PM, Jon Hunter wrote: >> Anyway, let me know what you think of this approach. An alternative is >> to put the calls pm_runtime_get/put outside of the reserve/release_pmu, >> which would be a simpler change, but I was thinking that the above maybe >> more aligned with your thinking. > > Ok, thanks for this. Whilst your code is definitely more like I'm > envisaging, you're right about the churn and until I've sorted out the > reservation code so that it's a callback via the PMU structure, it is > overly messy. > > So for the time being let's do what you suggested and put the suspend/resume > calls into armpmu_{reserve,release}_hardware. We can still kill the irq > enable/disable calls and I can rework this slightly when I change the > reservation code. Sounds good. I will send out my V2 series tomorrow that will include the above change. Cheers Jon