From mboxrd@z Thu Jan 1 00:00:00 1970 From: okaya@codeaurora.org Subject: Re: [PATCH V17 2/3] dmaengine: qcom_hidma: add debugfs hooks Date: Tue, 26 Apr 2016 08:08:16 -0400 Message-ID: References: <1460384473-5775-1-git-send-email-okaya@codeaurora.org> <1460384473-5775-3-git-send-email-okaya@codeaurora.org> <20160426033029.GB2274@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:54260 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751742AbcDZMIS (ORCPT ); Tue, 26 Apr 2016 08:08:18 -0400 In-Reply-To: <20160426033029.GB2274@localhost> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Vinod Koul Cc: dmaengine@vger.kernel.org, timur@codeaurora.org, devicetree@vger.kernel.org, cov@codeaurora.org, jcm@redhat.com, shankerd@codeaurora.org, vikrams@codeaurora.org, marc.zyngier@arm.com, mark.rutland@arm.com, eric.auger@linaro.org, agross@codeaurora.org, arnd@arndb.de, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Dan Williams , Andy Shevchenko , linux-kernel@vger.kernel.org On 2016-04-25 23:30, Vinod Koul wrote: > On Mon, Apr 11, 2016 at 10:21:12AM -0400, Sinan Kaya wrote: >=20 >> +static int hidma_chan_stats(struct seq_file *s, void *unused) >> +{ >> + struct hidma_chan *mchan =3D s->private; >> + struct hidma_desc *mdesc; >> + struct hidma_dev *dmadev =3D mchan->dmadev; >> + >> + pm_runtime_get_sync(dmadev->ddev.dev); >=20 > debug shouldn't power up device, why do you want to do that Clocks are turned off while the hw is idle. I can=E2=80=99t reach hw re= gisters=20 without restoring power. From mboxrd@z Thu Jan 1 00:00:00 1970 From: okaya@codeaurora.org (okaya at codeaurora.org) Date: Tue, 26 Apr 2016 08:08:16 -0400 Subject: [PATCH V17 2/3] dmaengine: qcom_hidma: add debugfs hooks In-Reply-To: <20160426033029.GB2274@localhost> References: <1460384473-5775-1-git-send-email-okaya@codeaurora.org> <1460384473-5775-3-git-send-email-okaya@codeaurora.org> <20160426033029.GB2274@localhost> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 2016-04-25 23:30, Vinod Koul wrote: > On Mon, Apr 11, 2016 at 10:21:12AM -0400, Sinan Kaya wrote: > >> +static int hidma_chan_stats(struct seq_file *s, void *unused) >> +{ >> + struct hidma_chan *mchan = s->private; >> + struct hidma_desc *mdesc; >> + struct hidma_dev *dmadev = mchan->dmadev; >> + >> + pm_runtime_get_sync(dmadev->ddev.dev); > > debug shouldn't power up device, why do you want to do that Clocks are turned off while the hw is idle. I can?t reach hw registers without restoring power.