mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Kyrie Wu (吴晗)" <Kyrie.Wu@mediatek.com>
To: "krzk@kernel.org" <krzk@kernel.org>
Cc: "robh@kernel.org" <robh@kernel.org>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"nicolas.dufresne@collabora.com" <nicolas.dufresne@collabora.com>,
	"AngeloGioacchino Del Regno"
	<angelogioacchino.delregno@collabora.com>,
	"Bin Liu (刘彬)" <bin.liu@mediatek.com>,
	"linux-mediatek@lists.infradead.org"
	<linux-mediatek@lists.infradead.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"hverkuil@kernel.org" <hverkuil@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Irui Wang (王瑞)" <Irui.Wang@mediatek.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"mchehab@kernel.org" <mchehab@kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
	"kyrie.wu@mediatek.corp-partner.google.com"
	<kyrie.wu@mediatek.corp-partner.google.com>
Subject: Re: [PATCH v18 12/13] dt-bindings: mediatek: Add MT8196 JPEG SMMU bindings
Date: Fri, 16 Oct 2026 06:35:05 +0000	[thread overview]
Message-ID: <111e3f34a0e6fcb8070ec4698460a83f6381b7a9.camel@mediatek.com> (raw)
In-Reply-To: <20261012-determined-magenta-camel-ff2ca8@quoll>

On Mon, 2026-10-12 at 11:31 +0200, Krzysztof Kozlowski wrote:
> On Sat, Oct 10, 2026 at 04:07:16PM +0800, Kyrie Wu wrote:
> > Document the decoder and encoder phandles and describe the
> > dedicated
> > JPEG SMMU configuration syscon for MT8196.
> > 
> > Signed-off-by: Kyrie Wu <kyrie.wu@mediatek.com>
> > ---
> >  .../media/mediatek,mt8195-jpegdec.yaml        | 16 ++++++++
> >  .../media/mediatek,mt8195-jpegenc.yaml        | 16 ++++++++
> >  .../mediatek/mediatek,mt8196-jpeg-smmu.yaml   | 41
> > +++++++++++++++++++
> >  MAINTAINERS                                   |  2 +
> >  4 files changed, 75 insertions(+)
> >  create mode 100644
> > Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8196-
> > jpeg-smmu.yaml
> > 
> > diff --git
> > a/Documentation/devicetree/bindings/media/mediatek,mt8195-
> > jpegdec.yaml
> > b/Documentation/devicetree/bindings/media/mediatek,mt8195-
> > jpegdec.yaml
> > index 28a9a9b..b1dccc3 100644
> > --- a/Documentation/devicetree/bindings/media/mediatek,mt8195-
> > jpegdec.yaml
> > +++ b/Documentation/devicetree/bindings/media/mediatek,mt8195-
> > jpegdec.yaml
> > @@ -73,6 +73,22 @@ patternProperties:
> >        power-domains:
> >          maxItems: 1
> >  
> > +      mediatek,smmu-config:
> > +        $ref: /schemas/types.yaml#/definitions/phandle
> > +        description:
> > +          Phandle to the MT8196 JPEG SMMU configuration syscon
> > used to
> > +          program this decoder's GUSER_ID fields.
> > +
> > +    allOf:
> > +      - if:
> > +          properties:
> > +            compatible:
> > +              contains:
> > +                const: mediatek,mt8196-jpgdec-hw
> > +        then:
> > +          required:
> > +            - mediatek,smmu-config
> 
> Why are you adding incomplete hardware in one patch and then
> immediately
> fixing it later?
> 
> Please read writing bindings doc (and part about complete hardware
> support).
> 
> Best regards,
> Krzysztof
> 
Hi Krzysztof,

You are right. The MT8196 decoder and encoder compatibles should not be
introduced before their schemas contain all properties and constraints
required to describe the hardware.

In v19, I will introduce the shared JPEG SMMU syscon schema first. I
will then fold the mediatek,smmu-config property and its required
constraint into the decoder-compatible patch, and do the same for the
encoder patch.

This will make each compatible-introduction commit complete on its own,
instead of fixing an incomplete binding in a later patch.

Thank you for the review.

Best regards,
Kyrie


  reply	other threads:[~2026-10-16  6:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-10  8:07 [PATCH v18 00/13] media: mediatek: jpeg: add MT8196 JPEG support Kyrie Wu
2026-10-10  8:07 ` [PATCH v18 01/13] media: mediatek: jpeg: fix jpeg cores' amounts setting Kyrie Wu
2026-10-10  8:07 ` [PATCH v18 02/13] media: mediatek: jpeg: fix jpeg buffer payload size setting Kyrie Wu
2026-10-10  8:07 ` [PATCH v18 03/13] media: mediatek: jpeg: fix buffer structure size and layout Kyrie Wu
2026-10-10  8:07 ` [PATCH v18 04/13] media: mediatek: jpeg: Fix buffer completion on multi-core streaming stop Kyrie Wu
2026-10-10  8:07 ` [PATCH v18 05/13] media: mediatek: jpeg: Fix multi-core clk suspend and resume setting Kyrie Wu
2026-10-10  8:07 ` [PATCH v18 06/13] media: mediatek: jpeg: fix buffer state update timing Kyrie Wu
2026-10-10  8:07 ` [PATCH v18 07/13] media: mediatek: jpeg: fix resolution change event handling in decoder Kyrie Wu
2026-10-10  8:07 ` [PATCH v18 08/13] media: mediatek: jpeg: fix remove buffer removal timing for multi-core Kyrie Wu
2026-10-10  8:07 ` [PATCH v18 09/13] media: dt-bindings: mediatek,jpeg: Add mediatek, mt8196-jpgdec compatible Kyrie Wu
2026-10-12  9:33   ` Krzysztof Kozlowski
2026-10-16  6:23     ` Kyrie Wu (吴晗)
2026-10-10  8:07 ` [PATCH v18 10/13] media: dt-bindings: mediatek,jpeg: Add mediatek, mt8196-jpgenc compatible Kyrie Wu
2026-10-10  8:07 ` [PATCH v18 11/13] media: mediatek: jpeg: add jpeg compatible Kyrie Wu
2026-10-10  8:07 ` [PATCH v18 12/13] dt-bindings: mediatek: Add MT8196 JPEG SMMU bindings Kyrie Wu
2026-10-12  9:31   ` Krzysztof Kozlowski
2026-10-16  6:35     ` Kyrie Wu (吴晗) [this message]
2026-10-10  8:07 ` [PATCH v18 13/13] media: mediatek: jpeg: add jpeg smmu sid setting Kyrie Wu

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=111e3f34a0e6fcb8070ec4698460a83f6381b7a9.camel@mediatek.com \
    --to=kyrie.wu@mediatek.com \
    --cc=Irui.Wang@mediatek.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=bin.liu@mediatek.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hverkuil@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=kyrie.wu@mediatek.corp-partner.google.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mchehab@kernel.org \
    --cc=nicolas.dufresne@collabora.com \
    --cc=robh@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

all inboxes | Powered by JetHome®