From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH v3 4/4] OMAP3/4: iommu: adapt to runtime pm Date: Fri, 04 Nov 2011 16:27:53 -0700 Message-ID: <87obwr1n9i.fsf@ti.com> References: <1320185752-568-1-git-send-email-omar.ramirez@ti.com> <1320185752-568-5-git-send-email-omar.ramirez@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1320185752-568-5-git-send-email-omar.ramirez@ti.com> (Omar Ramirez Luna's message of "Tue, 1 Nov 2011 17:15:52 -0500") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Omar Ramirez Luna Cc: Ohad Ben-Cohen , Russell King , Benoit Cousson , Tony Lindgren , lkml , Laurent Pinchart , lo , lak , lm List-Id: linux-omap@vger.kernel.org Omar Ramirez Luna writes: > Use runtime PM functionality interfaced with hwmod enable/idle > functions, to replace direct clock operations, reset and sysconfig > handling. > > Tidspbridge uses a macro removed with this patch, for now the value > is hardcoded to avoid breaking compilation. > > Signed-off-by: Omar Ramirez Luna Looks like a good cleanup. I agree with the comments from Myungjoo, and have a question below.. [...] > @@ -821,9 +820,7 @@ static irqreturn_t iommu_fault_handler(int irq, void *data) > if (!obj->refcount) > return IRQ_NONE; > > - clk_enable(obj->clk); > errs = iommu_report_fault(obj, &da); > - clk_disable(obj->clk); > if (errs == 0) > return IRQ_HANDLED; I'm not terribly familiar with this IOMMU code, but this one looks suspiciou because you're removing the clock calls but not replacing them with runtime PM get/put calls. I just want to make sure that's intentional. If so, you might want to add a comment about that to the changelog. Kevin