mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Reddy, MallikarjunaX" <mallikarjunax.reddy@linux.intel.com>
To: Thomas Langer <tlanger@maxlinear.com>,
	"dmaengine@vger.kernel.org" <dmaengine@vger.kernel.org>,
	"vkoul@kernel.org" <vkoul@kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"robh+dt@kernel.org" <robh+dt@kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Shevchenko, Andriy" <andriy.shevchenko@intel.com>,
	"chuanhua.lei@linux.intel.com" <chuanhua.lei@linux.intel.com>,
	"Kim, Cheol Yong" <Cheol.Yong.Kim@intel.com>,
	"Wu, Qiming" <qi-ming.wu@intel.com>,
	"malliamireddy009@gmail.com" <malliamireddy009@gmail.com>,
	"peter.ujfalusi@ti.com" <peter.ujfalusi@ti.com>,
	"Langer, Thomas" <thomas.langer@intel.com>
Subject: Re: [PATCH v7 1/2] dt-bindings: dma: Add bindings for intel LGM SOC
Date: Mon, 2 Nov 2020 22:41:54 +0800	[thread overview]
Message-ID: <9882db7a-755b-84c9-b132-1839dea5e6b8@linux.intel.com> (raw)
In-Reply-To: <DM6PR19MB3594E466A1B76229EC1395BABB160@DM6PR19MB3594.namprd19.prod.outlook.com>

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
>

  reply	other threads:[~2020-11-02 14:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-23  2:18 [PATCH v7 0/2] Add Intel LGM soc DMA support Amireddy Mallikarjuna reddy
2020-10-27  8:03 ` Amireddy Mallikarjuna reddy
2020-10-27  8:03 ` [PATCH v7 1/2] dt-bindings: dma: Add bindings for intel LGM SOC Amireddy Mallikarjuna reddy
2020-10-27 19:24   ` Thomas Langer
2020-11-02 14:41     ` Reddy, MallikarjunaX [this message]
2020-11-10 17:39       ` Thomas Langer
2020-11-12  3:09         ` Reddy, MallikarjunaX
2020-10-28 14:43   ` Rob Herring
2020-10-27  8:03 ` [PATCH v7 2/2] Add Intel LGM soc DMA support Amireddy Mallikarjuna reddy
2020-10-27 19:24   ` Thomas Langer
2020-11-02 14:41     ` Reddy, MallikarjunaX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9882db7a-755b-84c9-b132-1839dea5e6b8@linux.intel.com \
    --to=mallikarjunax.reddy@linux.intel.com \
    --cc=Cheol.Yong.Kim@intel.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=chuanhua.lei@linux.intel.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=malliamireddy009@gmail.com \
    --cc=peter.ujfalusi@ti.com \
    --cc=qi-ming.wu@intel.com \
    --cc=robh+dt@kernel.org \
    --cc=thomas.langer@intel.com \
    --cc=tlanger@maxlinear.com \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome