Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752424AbcDFPaT (ORCPT ); Wed, 6 Apr 2016 11:30:19 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:34636 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751045AbcDFPaQ (ORCPT ); Wed, 6 Apr 2016 11:30:16 -0400 Subject: Re: [PATCH v2 5/5] dmaengine: qcom: bam_dma: rename BAM_MAX_DATA_SIZE define To: Vinod Koul , Stanimir Varbanov References: <1459896982-30171-1-git-send-email-stanimir.varbanov@linaro.org> <1459896982-30171-6-git-send-email-stanimir.varbanov@linaro.org> <20160405234739.GF11586@vkoul-mobl.iind.intel.com> Cc: Rob Herring , Mark Rutland , Andy Gross , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, Sinan Kaya , Pramod Gurav From: Stanimir Varbanov Message-ID: <57052B83.4000208@linaro.org> Date: Wed, 6 Apr 2016 18:30:11 +0300 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: <20160405234739.GF11586@vkoul-mobl.iind.intel.com> 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 Content-Length: 799 Lines: 21 On 04/06/2016 02:47 AM, Vinod Koul wrote: > On Wed, Apr 06, 2016 at 01:56:22AM +0300, Stanimir Varbanov wrote: >> It seems that the define has not been with acurate name and >> makes confusion while reading the code. The more acurate >> name should be BAM_FIFO_SIZE. > > And not sure by that, what do you mean by FIFO size. In dmaengine context we By BAM_FIFO_SIZE I meant a FIFO depth for hw descriptors, i.e. how many hw descriptors could be pushed into the descriptor FIFO. In our case we wrote BAM_P_FIFO_SIZES register with SZ_32K - 8, which means that the FIFO will be 4095 hw descriptors deep. In fact the important patch in this series 4/5 where I corrected the value we wrote in BAM_P_FIFO_SIZES register. 4/5 and 5/5 can be postponed till we have better decision... -- regards, Stan