Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3350346pxx; Mon, 2 Nov 2020 06:44:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlREA/U/qqxTUShQDKWzlYteIRhbcDs3wScBa8mHAlsrFPdhB/Gt8QukEC2YQL7ZZaRsh9 X-Received: by 2002:a17:906:3413:: with SMTP id c19mr15150069ejb.421.1604328279579; Mon, 02 Nov 2020 06:44:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604328279; cv=none; d=google.com; s=arc-20160816; b=IIqhwvccZrYbf51GUmf1aP9moMbfFsAKsy7MJhz6NRw8LIoiJeh84eSVZdRnh8XWsH adzS4nExV+vS30p6Ub0mV/Uh/0hb/5WRWypFZLfWGDrz9weuwVS08VieI2rpcAEqMr9y LRPbQHLB8cziNocK7y11z9Po450788VkAU+KBy20ZPU+UIAjW1n3MNyht4JoBR7SoVNX vJcrx8zqLV9Fa1KeVK5bcrk/Xw8KhYBXoAmqGh6hgs0z9TE9oB6CzBrbdjSpFFqnXKI5 pAg1GAjveCDmICZdWrtHXmV3u3xSNocu9zHKhScaXBDnku0WTToltOaPzPoSUgreymMR fi0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence: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=31hYg3XZf1kndKqqN+yK1bWUnfMmZESi8b1hsOCLhds=; b=hcqLR1V/MiWyzrLJwF/sDz9FHG/WVYKDGB0fEERDU3OBtsJfWmPEZbuixANpTdU+iw 5108ACda1RN5aP43cqE3xeiM1SWNAygTpwv9tcOTdjgz5xIfPVJiinRbRl9wq1vjXMnJ znVxigoF5mTD8wHUbVeC2Cy1uiecg3FliWramKSZCNWDVD0Sfzo994hhN6UFasJzZGBd ZPzeFRUG0gfnEHhKdEmzJs+srK+qy15NBwQSJwvAtbEeJ+77zmuyvsLTP6VyPjdsAUbL GB0wXkp0RWRyE30HoAezBgho9SaShCPMoDKPKoCeGT52xCRGzOx88N+ZCSSpxPa9ZmS6 4TJA== 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 dt15si10083521ejb.248.2020.11.02.06.44.15; Mon, 02 Nov 2020 06:44:39 -0800 (PST) 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 S1726241AbgKBOmB (ORCPT + 99 others); Mon, 2 Nov 2020 09:42:01 -0500 Received: from mga02.intel.com ([134.134.136.20]:42107 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbgKBOmA (ORCPT ); Mon, 2 Nov 2020 09:42:00 -0500 IronPort-SDR: OqqDJhooQDjKhVKlzgh/Ap67roQEdw9dzCsVLsW80B2ExVggj7C7B44lFVCSS8ovg7OKvq0ZsT Ld0+ssIJnqmg== X-IronPort-AV: E=McAfee;i="6000,8403,9792"; a="155881046" X-IronPort-AV: E=Sophos;i="5.77,445,1596524400"; d="scan'208";a="155881046" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2020 06:41:59 -0800 IronPort-SDR: ex1tWBcSp/TxhNC24k34383oyQ8zr8wuTlCNVa6YLNXDK1k0YF20c+xHoTOXZNjSfIa/FGoUff QEAzsIhpkxbQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,445,1596524400"; d="scan'208";a="526695352" Received: from linux.intel.com ([10.54.29.200]) by fmsmga006.fm.intel.com with ESMTP; 02 Nov 2020 06:41:58 -0800 Received: from [10.249.65.176] (mreddy3x-MOBL.gar.corp.intel.com [10.249.65.176]) by linux.intel.com (Postfix) with ESMTP id 50789580870; Mon, 2 Nov 2020 06:41:55 -0800 (PST) Subject: Re: [PATCH v7 1/2] dt-bindings: dma: Add bindings for intel LGM SOC To: Thomas Langer , "dmaengine@vger.kernel.org" , "vkoul@kernel.org" , "devicetree@vger.kernel.org" , "robh+dt@kernel.org" Cc: "linux-kernel@vger.kernel.org" , "Shevchenko, Andriy" , "chuanhua.lei@linux.intel.com" , "Kim, Cheol Yong" , "Wu, Qiming" , "malliamireddy009@gmail.com" , "peter.ujfalusi@ti.com" , "Langer, Thomas" References: From: "Reddy, MallikarjunaX" Message-ID: <9882db7a-755b-84c9-b132-1839dea5e6b8@linux.intel.com> Date: Mon, 2 Nov 2020 22:41:54 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, Thanks for the review, my comments inline. On 10/28/2020 3:24 AM, Thomas Langer wrote: > Hello Reddy, > > I think "Intel" should always be written with a capital "I" (like in the Subject, but except in the binding below) OK. > >> + compatible: >> + oneOf: >> + - const: intel,lgm-cdma >> + - const: intel,lgm-dma2tx >> + - const: intel,lgm-dma1rx >> + - const: intel,lgm-dma1tx >> + - const: intel,lgm-dma0tx >> + - const: intel,lgm-dma3 >> + - const: intel,lgm-toe-dma30 >> + - const: intel,lgm-toe-dma31 > Bindings are normally not per instance. > What if next generation chip gets more DMA modules but has no other changes in the HW block? > What is wrong with > - const: intel,lgm-cdma > - const: intel,lgm-hdma > and extra attributes to define the rx/tx restriction (or what do it mean?)? > From the driver code I saw that "toe" is also just of type "hdma" and no further differences in code are done. We had a discussion on the same in the previous patches and Rob Herring said Okay using Different compatibles. below the snippet. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>> + compatible: >>> +  anyOf: >>> +   - const: intel,lgm-cdma >>> +   - const: intel,lgm-dma2tx >>> +   - const: intel,lgm-dma1rx >>> +   - const: intel,lgm-dma1tx >>> +   - const: intel,lgm-dma0tx >>> +   - const: intel,lgm-dma3 >>> +   - const: intel,lgm-toe-dma30 >>> +   - const: intel,lgm-toe-dma31 >> Please explain why you need so many different compatible strings. > This hw dma has 7 DMA instances. > Some for datapath, some for memcpy  and some for TOE. > Some for TX only, some for RX only, and some for TX/RX(memcpy and ToE). > > dma TX/RX type we considered as driver specific data of each instance and > used different compatible strings for each instance. > And also idea is in future if any driver specific data of any particular > instance we can handle. > > Here if dma name and type(tx or rx) will be accepted as devicetree > attributes then we can move .name = "toe_dma31", & .type = DMA_TYPE_MCPY > to devicetree. So that the compatible strings can be limited to two. > intel,lgm-cdma & intel,lgm-hdma . [Rob] Different compatibles are okay if the instances are different and we don't have properties to describe the differences. For some of what you have in this binding, I think it should be part of the consumer cells. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Best regards, > Thomas >