From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Aradhya Bhatia <a-bhatia1@ti.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Jyri Sarha <jyri.sarha@iki.fi>, David Airlie <airlied@gmail.com>,
Daniel Vetter <daniel@ffwll.ch>
Cc: DRI Development List <dri-devel@lists.freedesktop.org>,
Devicetree List <devicetree@vger.kernel.org>,
Linux Kernel List <linux-kernel@vger.kernel.org>,
Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>,
Rahul T R <r-ravikumar@ti.com>, Devarsh Thakkar <devarsht@ti.com>,
Jai Luthra <j-luthra@ti.com>,
Jayesh Choudhary <j-choudhary@ti.com>
Subject: Re: [PATCH v7 3/6] drm/tidss: Add support for AM625 DSS
Date: Mon, 6 Feb 2023 12:58:25 +0200 [thread overview]
Message-ID: <12ba1f03-d6dd-c9c5-abf0-e9298dc22f28@ideasonboard.com> (raw)
In-Reply-To: <1662a593-8a5d-9214-8a3e-ef2699a35265@ti.com>
On 05/02/2023 16:31, Aradhya Bhatia wrote:
>
>
> On 03-Feb-23 21:03, Tomi Valkeinen wrote:
>> On 25/01/2023 13:35, Aradhya Bhatia wrote:
>>> Add support for the DSS controller on TI's new AM625 SoC in the tidss
>>> driver.
>>>
>>> The first video port (VP0) in am625-dss can output OLDI signals through
>>> 2 OLDI TXes. A 3rd output port has been added with "DISPC_PORT_OLDI" bus
>>> type.
>>
>> Not a big thing here as you add support for a new SoC, but the ordering
>> of the patches is not optimal. Here you add the AM625 DSS support, but
>> then you continue actually adding the DSS support (well, mainly OLDI) in
>> the following patches.
>>
>> I think patch 6 could be before this patch. Parts of patch 4 could also
>> be before this patch. The AM65X renames from patch 5 could be before
>> this patch.
>
> I can move whole of Patch 6 and even of Patch 4 before this one. I have
> mentioned 'AM625-DSS' in a couple comments which I can make generic,
> and the rest everything is SoC-agnostic.
>
> I haven't tried this, but my concern is if we break patch 5 into 2
> separate patches,
>
> i. AM65X rename plus SoC based switch case, and
> ii. Addition of AM625 SoC case
>
> then I might have to overwrite some changes implemented during (i) in
> (ii). I don't suppose that would be okay, would it?
I'm not sure I follow here. Wouldn't (i) be a valid patch in its own?
Nothing wrong in expanding that later (even if you end up changing a lot
of it).
That said, I don't think this is a very important topic. There are only
a few commits in the history that might be problematic. A simple fix
would be to add all the features first, and only last add the compatible
string for am625.
Or do all the changes for am625 in a single patch, and try to implement
all the generic restructuring work before that.
Here we do have to change the vp-to-output mapping management, so maybe
the second option won't be simple enough, and it's better to do the
am625 changes in pieces, as in the first option.
So, it's really up to you. Just wanted to raise this possible issue so
that you are aware of it and can do any easy fixes (if there are such).
> Also, is it important to keep the compatible-addition patches of
> DT-binding and driver next to each other in the series? Or should
> the DT-binding patches should be the first ones? Just curious! =)
I believe the convention is to have the DT-binding changes before you
add the compatible string to the driver (if I recall right checkpatch or
some other checking tool complains if you add a driver for a compatible
that doesn't have a DT binding). Generic restructurings could be before
the DT patch, of course, but usually I like to keep the DT binding
changes at the very beginning of the series.
Tomi
next prev parent reply other threads:[~2023-02-06 10:58 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-25 11:35 [PATCH v7 0/6] Add DSS support for AM625 SoC Aradhya Bhatia
2023-01-25 11:35 ` [PATCH v7 1/6] drm/tidss: Remove Video Port to Output Port coupling Aradhya Bhatia
2023-02-03 11:23 ` Tomi Valkeinen
2023-02-05 13:08 ` Aradhya Bhatia
2023-02-06 13:05 ` Tomi Valkeinen
2023-02-06 17:34 ` Aradhya Bhatia
2023-02-06 18:01 ` Tomi Valkeinen
2023-01-25 11:35 ` [PATCH v7 2/6] dt-bindings: display: ti,am65x-dss: Add support for am625 dss Aradhya Bhatia
2023-01-25 19:05 ` Rob Herring
2023-01-25 11:35 ` [PATCH v7 3/6] drm/tidss: Add support for AM625 DSS Aradhya Bhatia
2023-02-03 15:33 ` Tomi Valkeinen
2023-02-05 14:31 ` Aradhya Bhatia
2023-02-06 10:58 ` Tomi Valkeinen [this message]
2023-02-06 16:56 ` Aradhya Bhatia
2023-01-25 11:35 ` [PATCH v7 4/6] drm/tidss: Add support to configure OLDI mode for am625-dss Aradhya Bhatia
2023-02-03 15:12 ` Tomi Valkeinen
2023-02-05 13:42 ` Aradhya Bhatia
2023-02-06 13:42 ` Tomi Valkeinen
2023-02-06 17:38 ` Aradhya Bhatia
2023-01-25 11:35 ` [PATCH v7 5/6] drm/tidss: Add IO CTRL and Power support for OLDI TX in am625 Aradhya Bhatia
2023-02-03 15:19 ` Tomi Valkeinen
2023-02-05 13:49 ` Aradhya Bhatia
2023-01-25 11:35 ` [PATCH v7 6/6] drm/tidss: Enable Dual and Duplicate Modes for OLDI Aradhya Bhatia
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=12ba1f03-d6dd-c9c5-abf0-e9298dc22f28@ideasonboard.com \
--to=tomi.valkeinen@ideasonboard.com \
--cc=a-bhatia1@ti.com \
--cc=airlied@gmail.com \
--cc=daniel@ffwll.ch \
--cc=devarsht@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=j-choudhary@ti.com \
--cc=j-luthra@ti.com \
--cc=jyri.sarha@iki.fi \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nm@ti.com \
--cc=r-ravikumar@ti.com \
--cc=robh+dt@kernel.org \
--cc=vigneshr@ti.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®