Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756456AbcKWEFo (ORCPT ); Tue, 22 Nov 2016 23:05:44 -0500 Received: from mga03.intel.com ([134.134.136.65]:15125 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756167AbcKWEFm (ORCPT ); Tue, 22 Nov 2016 23:05:42 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,684,1473145200"; d="scan'208";a="904602171" Date: Wed, 23 Nov 2016 09:45:13 +0530 From: Vinod Koul To: Andy Shevchenko Cc: Eugeniy Paltsev , devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-snps-arc@lists.infradead.org Subject: Re: [PATCH v3 2/2] DW DMAC: add multi-block property to device tree Message-ID: <20161123041513.GF2698@localhost> References: <1479496356-27834-1-git-send-email-Eugeniy.Paltsev@synopsys.com> <1479496356-27834-3-git-send-email-Eugeniy.Paltsev@synopsys.com> <1479497593.22212.45.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1479497593.22212.45.camel@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 781 Lines: 22 On Fri, Nov 18, 2016 at 09:33:13PM +0200, Andy Shevchenko wrote: > > @@ -1569,7 +1569,7 @@ int dw_dma_probe(struct dw_dma_chip *chip) > > ? (dwc_params >> DWC_PARAMS_MBLK_EN & > > 0x1) == 0; > > ? } else { > > ? dwc->block_size = pdata->block_size; > > - dwc->nollp = pdata->is_nollp; > > + dwc->nollp = pdata->multi_block[i]; > > You missed the point. You assign positive value to negative variable. > It's a bug. Have you tested this? How? > > In case of positive property you have to update DTS. By the way, I'm > pretty sure that spare13xx boards has auto configuration enabled, though > it has to be checked with vendor (I assume you may have fast response > from them). Yeah why are we not using auto configuration here would be the first question.. -- ~Vinod