From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753621AbbJ0CKT (ORCPT ); Mon, 26 Oct 2015 22:10:19 -0400 Received: from mga09.intel.com ([134.134.136.24]:25359 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753228AbbJ0CKR (ORCPT ); Mon, 26 Oct 2015 22:10:17 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,202,1444719600"; d="scan'208";a="803810119" Date: Tue, 27 Oct 2015 11:10:09 +0900 From: Vinod Koul To: Jon Hunter Cc: Laxman Dewangan , Stephen Warren , Thierry Reding , Alexandre Courbot , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , dmaengine@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3 2/2] dmaengine: tegra-adma: Add support for Tegra210 ADMA Message-ID: <20151027021008.GD11691@vkoul-mobl.iind.intel.com> References: <1444980919-20331-1-git-send-email-jonathanh@nvidia.com> <1444980919-20331-3-git-send-email-jonathanh@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1444980919-20331-3-git-send-email-jonathanh@nvidia.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > +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 -- ~Vinod