From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Subject: Re: [PATCH v9 3/4] dma: pl330: add Power Management support Date: Wed, 5 Nov 2014 22:16:01 +0530 Message-ID: <20141105164601.GQ1870@intel.com> References: <1415105570-7871-1-git-send-email-k.kozlowski@samsung.com> <1415105570-7871-4-git-send-email-k.kozlowski@samsung.com> <20141105140116.GN1870@intel.com> <1415197299.30831.10.camel@AMDC1943> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1415197299.30831.10.camel@AMDC1943> Sender: linux-kernel-owner@vger.kernel.org To: Krzysztof Kozlowski Cc: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Jonathan Corbet , Russell King , Dan Williams , Ulf Hansson , Alan Stern , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Lars-Peter Clausen , Michal Simek , Kevin Hilman , Laurent Pinchart , Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz List-Id: linux-pm@vger.kernel.org On Wed, Nov 05, 2014 at 03:21:39PM +0100, Krzysztof Kozlowski wrote: > > > +static int __maybe_unused pl330_resume(struct device *dev) > > > +{ > > > + struct amba_device *pcdev = to_amba_device(dev); > > > + > > > + amba_pclk_prepare(pcdev); > > > + > > > + /* > > > + * TODO: Idea for future. The device should not be woken up after > > > + * system resume if it is not needed. It could stay runtime suspended > > > + * waiting for DMA requests. However for safe suspend and resume we > > > + * forcibly resume the device here. > > > + */ > > > + return pm_runtime_force_resume(dev); > > > +} > > > + > > > +static SIMPLE_DEV_PM_OPS(pl330_pm, pl330_suspend, pl330_resume); > > IIUC this sets .suspend and .resume, aren't you trying to add runtime > > support as well? > > Did you want UNIVERSAL_DEV_PM_OPS() ? > > The runtime suspend and resume callbacks are provided by amba/bus.c. Can you add that as comment in this driver please. rest looks fine -- ~Vinod