Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp812815ybh; Mon, 13 Jul 2020 01:42:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpv1yojnftbmfyRMFZs1DsMbwGBBYkcC4AQi9Kiuxq+xjYgH73FBiDQl1UWMu6ilK+ad4U X-Received: by 2002:a17:906:4341:: with SMTP id z1mr66182792ejm.392.1594629737840; Mon, 13 Jul 2020 01:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594629737; cv=none; d=google.com; s=arc-20160816; b=kgRjlx3S4Yt03xg4GbjBWMliAElNRVYN8OBp9nKtuFBgmPr7KbLBrGWxzqmT3lIy3V H9uBbGxmHLEs9Jbq6mLmB9caGkgyGvNdRdOh0gysLLND5zv8KIVdM97z6MkfdqfbCuEV vmFBgjFxGgh+jR8zRiMJ1G5GPytjp/J4F18yN8Y5EltTAaHR6Ev+JxZTYQ+ySrR6H0wK jddKVtHCUqnMtgR3OumckoOqaOsVZlbAe0TJB7DK3c2qFY9Pi4BNIFnzVjnZ9GZdIdub pvq794zZ0L7QNoAm6f66AM65QbQqahGUfj1WnxdBR30osbEBFkZVqtZZL/hazbhA4owo LJMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=S6OLuzHVwENWXmMXM6F+U3mbtZ6gzbr8AvUMifEsBCc=; b=rZFk6DuzdIDM69dFAEkcmrdWN/VAoCAIPago5WEz0JtMsTgdZdk8NaVEjAqcIZx+Jn NsPCzLS2QcV+kKIu04beuqoay6hXORu9EPTPuxhOP34RIC513Y1cKNIRSUAbH3iwkZDm Be0xkDj2DWq7b1E5T57QRFEAtmkdzI4Z3RyvpU6HoMn1TCRE4L553yxz2p91clh9F8cw Qv5TsQPCDte+f/kFcvU1XE+C56vWB8Gy1I/7+qEv+i2ANb7EW6svOFZi6pf9jLAmz/V6 BGai+XmfKc2yYdj+j/YaxKBMgobv8eLn+F7OgnWNeII89MlwPOcqqxk8cuQ8nZqzhCzQ b7cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id si13si9119636ejb.188.2020.07.13.01.41.55; Mon, 13 Jul 2020 01:42:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729059AbgGMIlg (ORCPT + 99 others); Mon, 13 Jul 2020 04:41:36 -0400 Received: from mga07.intel.com ([134.134.136.100]:46404 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728382AbgGMIlg (ORCPT ); Mon, 13 Jul 2020 04:41:36 -0400 IronPort-SDR: N2547ZEoTeqNBMC8fzTI+8W/jeP0XhIfG0BN8l9wc7hhlqm+JBvkSmXGra4zAeKkmcz4JJcbhi v2GohUVTAvhg== X-IronPort-AV: E=McAfee;i="6000,8403,9680"; a="213414173" X-IronPort-AV: E=Sophos;i="5.75,346,1589266800"; d="scan'208";a="213414173" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2020 01:41:35 -0700 IronPort-SDR: BLDNkp2A7Jp4PSPcgGtrrs2mwi6zap10DENFrgIJHJw7qKhjwMhOLvab3Dd19FuZLoaO4IcQvP WqfvenKKZrlw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,346,1589266800"; d="scan'208";a="325436277" Received: from linux.intel.com ([10.54.29.200]) by orsmga007.jf.intel.com with ESMTP; 13 Jul 2020 01:41:35 -0700 Received: from [10.215.249.14] (mreddy3x-MOBL.gar.corp.intel.com [10.215.249.14]) by linux.intel.com (Postfix) with ESMTP id 6EEBA58080E; Mon, 13 Jul 2020 01:41:32 -0700 (PDT) Subject: Re: [PATCH v4 2/2] Add Intel LGM soc DMA support. To: Andy Shevchenko Cc: dmaengine@vger.kernel.org, vkoul@kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, chuanhua.lei@linux.intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, malliamireddy009@gmail.com, mallikarjunax.reddy@linux.intel.com References: <6be9b9cfbf6708fe371f280cb94cbdc9c04bdccb.1594273437.git.mallikarjunax.reddy@linux.intel.com> <20200709110914.GW3703480@smile.fi.intel.com> From: "Reddy, MallikarjunaX" Message-ID: Date: Mon, 13 Jul 2020 16:41:31 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200709110914.GW3703480@smile.fi.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the review Andy. My comments inline. On 7/9/2020 7:09 PM, Andy Shevchenko wrote: > On Thu, Jul 09, 2020 at 02:01:06PM +0800, Amireddy Mallikarjuna reddy wrote: >> Add DMA controller driver for Lightning Mountain(LGM) family of SoCs. >> >> The main function of the DMA controller is the transfer of data from/to any >> DPlus compliant peripheral to/from the memory. A memory to memory copy >> capability can also be configured. >> >> This ldma driver is used for configure the device and channnels for data >> and control paths. >> +#include "../virt-dma.h" > I didn't find any evidence this driver utilizes virt-dma API in full. > For example, there is a virt_dma_desc structure and descriptor management around it. > Why don't you use it? Lgm dma soc has its own hardware descriptor. and each dma channel is associated with a peripheral, it is one to one mapping between channel and associated peripheral. >