From: Zhou Yanjie <zhouyanjie@wanyeetech.com>
To: "H. Nikolaus Schaller" <hns@goldelico.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
hminas@synopsys.com, Rob Herring <robh+dt@kernel.org>,
linux-usb@vger.kernel.org,
linux-mips <linux-mips@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS
<devicetree@vger.kernel.org>,
dragancecavac@yahoo.com, dongsheng.qiu@ingenic.com,
qipengzhen <aric.pzqi@ingenic.com>,
rick.tyliu@ingenic.com, sernia.zhou@foxmail.com,
zhenwenjin@gmail.com, reimu@sudomaker.com
Subject: Re: [PATCH v2 1/2] dt-bindings: dwc2: Add bindings for new Ingenic SoCs.
Date: Fri, 15 Apr 2022 01:11:37 +0800 [thread overview]
Message-ID: <40d34f8b-4ab7-5ced-b533-da1f4b501cdc@wanyeetech.com> (raw)
In-Reply-To: <F6929BAA-D552-4C34-B392-33AEA263F0C9@goldelico.com>
Hi,
On 2022/4/14 下午6:00, H. Nikolaus Schaller wrote:
>
>> Am 14.04.2022 um 09:32 schrieb Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>:
>>
>> On 13/04/2022 21:30, H. Nikolaus Schaller wrote:
>>> So we need "snps,dwc2" to get any driver match and I thought the "ingenic,jz4780-otg" is redundant.
>>>
>>> But maintainers convinced me to keep it as a dummy compatible in the .dtsi for potential future
>>> specialization (which does not exist and seems not to be necessary).
>> Isn't exactly the next patch 2/2 using such specialization?
>>
>>> Unless I can convince them
>>> that this is never ever needed. Which is beyond my knowledge and almost everyone.
>>>
>>> So we can't remove the "snps,dwc2" here.
>>>
>>> Well, we can with more work elsewhere.
>>> You have to extend the dwc2_of_match_table to include all ingenic devices.
>>>
>>> Therefore we now know 3 potential solutions:
>>> a) remove "ingenic,jz4780-otg" from jz4780.dtsi (my proposal)
>>> b) add "ingenic,jz4780-otg" to dwc2.yaml together with "snps,dwc2" (your proposal + my suggestion here)
>>> c) add only "ingenic,jz4780-otg" to dwc2.yaml and extend the match table in drivers//usb/dwc2/params.c (new proposals)
>>>
>>> From consistency point of view I think variant b) is the right one. a) was rejected and c) only adds redundant code.
>> c) was already proposed by Zhou, so if you think the code is not correct
>> (the params for jz4780) maybe nack it there, so we will know that driver
>> needs fixes.
> Ah, ok. Now I see. I was just focussed on this patch and related dtbscheck
> messages and did not read patch 2/2.
>
> Yes, looking at both, they are variant c). Sorry that I didn't see it earlier.
It looks like we need a [3/3] to remove "snps,dwc2", which not only solves
the dtbscheck complaining problem, but also doesn't affect normal use after
removing "snps,dwc2".
>
> As said: I am open to anything as long as the dtbscheck doesn't complain any more.
>
> BR and sorry for the confusion,
> Nikolaus
next prev parent reply other threads:[~2022-04-14 17:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-12 18:29 [PATCH v2 0/2] Add OTG support for " 周琰杰 (Zhou Yanjie)
2022-04-12 18:30 ` [PATCH v2 1/2] dt-bindings: dwc2: Add bindings for new " 周琰杰 (Zhou Yanjie)
2022-04-13 7:22 ` H. Nikolaus Schaller
[not found] ` <c79a8ff7-7a3f-9627-f910-dbbf942e34cb@wanyeetech.com>
2022-04-13 19:30 ` H. Nikolaus Schaller
2022-04-13 19:42 ` Zhou Yanjie
2022-04-14 7:32 ` Krzysztof Kozlowski
2022-04-14 10:00 ` H. Nikolaus Schaller
2022-04-14 17:11 ` Zhou Yanjie [this message]
2022-04-14 17:18 ` H. Nikolaus Schaller
2022-04-12 18:30 ` [PATCH v2 2/2] USB: dwc2: Add OTG support for " 周琰杰 (Zhou Yanjie)
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=40d34f8b-4ab7-5ced-b533-da1f4b501cdc@wanyeetech.com \
--to=zhouyanjie@wanyeetech.com \
--cc=aric.pzqi@ingenic.com \
--cc=devicetree@vger.kernel.org \
--cc=dongsheng.qiu@ingenic.com \
--cc=dragancecavac@yahoo.com \
--cc=gregkh@linuxfoundation.org \
--cc=hminas@synopsys.com \
--cc=hns@goldelico.com \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=reimu@sudomaker.com \
--cc=rick.tyliu@ingenic.com \
--cc=robh+dt@kernel.org \
--cc=sernia.zhou@foxmail.com \
--cc=zhenwenjin@gmail.com \
/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
all inboxes | Powered by JetHome®