Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1419365imm; Tue, 2 Oct 2018 07:57:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV611de0luDFR6Ki0QGZ/vRs84DiPfUXn7HMelpRYdlg18ZDq/EvL6b92npjzbQ91BljGgFX7 X-Received: by 2002:a62:8a91:: with SMTP id o17-v6mr16962491pfk.184.1538492254364; Tue, 02 Oct 2018 07:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538492254; cv=none; d=google.com; s=arc-20160816; b=gNZI0iMyvBgr7ET/3mNIoQfQdiOgnHHqpk6eGwy/exwaM3Suk24Rj0gZ2Mf7kmaWLO Fqqa/Y9rqv8evtLW8JSc9AzC/fQ67PeMzRc7xwoG4v/wWDn0U3yi7PpMgAypHegTP0m4 w2pGCYZON0O3gRQMbpZEpCbeOlGRy8oVMi+ZcHBbn34QQtFQtkXi/K2GynX0na1sSPNn sB5t6UPDS7f+HuRNjB57Fyi0zxC2jr2sNwx9Oahn/0NaqEB2M8zAi5cTAw9jhM8pn+WN 0XvDceQs5do9/3MbEsAYp6F4SdOc695AokD/N2MOpbpS4fZ/P5l75K0VDVYedebjzKl+ 1zNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=clEg03uNCS/0XS++A2wPkCZQ+PcwSE+GUSIW7E5TAdI=; b=Ms5RapSVGeP0JhutNBX1f6ms3f8o5KGEBOTO1k+rpzmzQgb8MCBwYiP2NEtfAqjTcP Z08GcXWxcvwdirgEN/tkDou3/wy3RqNLS9Es1vKynyDpx4OmxtNmAh0LBO2NMp2O9WXh MO2wh42VWE5w1SZsRTMRc8S9WEO8bGs3a8wxsB5Ea+aEcsjHPTKyyGd7aVgESmBxeJCG /nRNDhkpXbCWqafMVfGZte0M/OON4T7Z30RGxKJhK6eB3YYYwgvwz0e0fekJbqIndIB3 7qbNnbcJFVWLBgsmuVetb2hgxE3KdoJjkDgd52LKmpyK+D/VuZmhmZ5Yk00+AWkBP9tS 1wRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ibsS2N/K"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t187-v6si16313205pfd.148.2018.10.02.07.57.19; Tue, 02 Oct 2018 07:57:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ibsS2N/K"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728979AbeJBVkp (ORCPT + 99 others); Tue, 2 Oct 2018 17:40:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:55744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728496AbeJBVko (ORCPT ); Tue, 2 Oct 2018 17:40:44 -0400 Received: from localhost (unknown [171.76.113.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D175720666; Tue, 2 Oct 2018 14:56:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538492216; bh=MFu6dk0r5t5LaADtsaTSV40Hhb8llHUyK8pCixr4KmI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ibsS2N/KjyTpICVbOXewi/KSSxk2+BAtvC8aHAlrNBjUYdEaa1elj5N/1QgRg/Njx IO9xLd5lqVz8EKjUKGvxKyOjEOttibriTXvbB4qwiYK2zfYrVyKDdRS3/IB2sSdOBV YfmokvyYYgjXLbCv5u8yqf+BuV/fJpWIXKSD2vxk= Date: Tue, 2 Oct 2018 20:26:47 +0530 From: Vinod To: Andrea Merello Cc: dan.j.williams@intel.com, michal.simek@xilinx.com, appana.durga.rao@xilinx.com, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel , Rob Herring , Mark Rutland , devicetree , Radhey Shyam Pandey Subject: Re: [PATCH v5 4/7] dmaengine: xilinx_dma: program hardware supported buffer length Message-ID: <20181002145647.GG19792@vkoul-mobl> References: <20180907062502.8241-1-andrea.merello@gmail.com> <20180907062502.8241-4-andrea.merello@gmail.com> <20180918162508.GD2613@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28-09-18, 08:53, Andrea Merello wrote: > On Tue, Sep 18, 2018 at 6:25 PM Vinod wrote: > > > @@ -964,7 +968,7 @@ static int xilinx_dma_calc_copysize(struct xilinx_dma_chan *chan, > > > int size, int done) > > > { > > > size_t copy = min_t(size_t, size - done, > > > - XILINX_DMA_MAX_TRANS_LEN); > > > + chan->xdev->max_buffer_len); > > > > hmm why not add max_buffer_len in patch 1 again, and then use default > > len as XILINX_DMA_MAX_TRANS_LEN and add multiple lengths here :) > > Sorry, I'm not getting your point. Could you please elaborate the "add > multiple lengths here" thing ? IIRC (sorry been travelling and vacation), add chan->xdev->max_buffer_len in patch 1 and initialize it to XILINX_DMA_MAX_TRANS_LEN. Then in subsequent patches update the length. -- ~Vinod