From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752652AbbJ0JYL (ORCPT ); Tue, 27 Oct 2015 05:24:11 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:9765 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147AbbJ0JYI (ORCPT ); Tue, 27 Oct 2015 05:24:08 -0400 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Tue, 27 Oct 2015 02:14:37 -0700 Subject: Re: [PATCH V3 2/2] dmaengine: tegra-adma: Add support for Tegra210 ADMA To: Vinod Koul References: <1444980919-20331-1-git-send-email-jonathanh@nvidia.com> <1444980919-20331-3-git-send-email-jonathanh@nvidia.com> <20151027021008.GD11691@vkoul-mobl.iind.intel.com> CC: Laxman Dewangan , Stephen Warren , Thierry Reding , "Alexandre Courbot" , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , , , From: Jon Hunter Message-ID: <562F42B1.30102@nvidia.com> Date: Tue, 27 Oct 2015 09:24:01 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151027021008.GD11691@vkoul-mobl.iind.intel.com> X-Originating-IP: [10.21.132.159] X-ClientProxiedBy: UKMAIL101.nvidia.com (10.26.138.13) To UKMAIL101.nvidia.com (10.26.138.13) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/10/15 02:10, Vinod Koul wrote: > On Fri, Oct 16, 2015 at 08:35:19AM +0100, Jon Hunter wrote: >> +static inline void tdma_ch_write(struct tegra_adma_chan *tdc, >> + u32 reg, u32 val) > > Coding style issue here Yes will correct. >> +static int tegra_adma_alloc_chan_resources(struct dma_chan *dc) >> +{ >> + struct tegra_adma_chan *tdc = to_tegra_adma_chan(dc); >> + int ret; >> + >> + ret = pm_runtime_get_sync(tdc2dev(tdc)); >> + if (ret) >> + return ret; > > pm_runtime_get_sync() return postive values on success too, so this can > fail. This check should be for less than zero case I stumbled upon that recently and will also fix up. Cheers Jon