The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Atanas Filipov <atanas.filipov@oss.qualcomm.com>
To: Bryan O'Donoghue <bod@kernel.org>, linux-media@vger.kernel.org
Cc: mchehab@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, andersson@kernel.org,
	konradybcio@kernel.org, linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 2/4] arm64: dts: qcom: sm8550: Add JPEG encoder node
Date: Sat, 13 Jun 2026 12:24:03 +0300	[thread overview]
Message-ID: <3d4e0147-8e62-4872-b881-1452f5e09e85@oss.qualcomm.com> (raw)
In-Reply-To: <8d230cca-2023-4a13-876f-d5db8eb200a1@kernel.org>

Thank you for the feedback. I understand the reasoning, but I 
respectfully disagree with this approach for the following reasons.

While it is true that the JPEG encoder shares the same camera NOC and 
power domain infrastructure as CAMSS, that is a hardware topology detail 
— not a sufficient justification for imposing a software dependency. The 
driver is a fully
self-contained V4L2 mem2mem encoder, implemented like every other JPEG 
encoder driver currently in the kernel (imx-jpeg, s5p-jpeg, mtk-jpeg, 
nxp-jpeg). None of those are sub-nodes of a parent ISP or camera 
subsystem driver.

Making the JPEG encoder a sub-node of camss would introduce an 
unnecessary and artificial coupling: the JPEG encoder cannot be probed, 
built, or used independently of the CAMSS driver, even on platforms 
where CAMSS is disabled. This directly contradicts the kernel's 
principle of independent, single-purpose drivers.

The shared hardware resources (clocks, interconnects, IOMMU stream IDs, 
power domain) are already fully described in the device tree node and 
handled by the standard kernel frameworks — there is no functional 
reason to nest the node under camss.

For these reasons I would prefer to keep the JPEG encoder as a 
standalone platform device with its own DT node, consistent with how all 
comparable JPEG encoder drivers are structured in the kernel today.

afilipov

On 6/13/2026 2:14 AM, Bryan O'Donoghue wrote:
> On 12/06/2026 20:44, Atanas Filipov wrote:
>> +        qcom_jpeg_enc: jpeg-encoder@ac4e000 {
> 
> One key bit of review feedback I gave in the previous leaked version of 
> this driver is that since the jpeg-encoder is part of the CAMSS block it 
> should be a sub-node of camss as OPE, CSIPHY and other blocks will be.
> 
> Please take that feedback onboard in your v2.
> 
> ---
> bod


  reply	other threads:[~2026-06-13  9:24 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-12 19:44 [PATCH v1 0/4] This series adds support for the Qualcomm JPEG V4L2 mem2mem encoder Atanas Filipov
2026-06-12 19:44 ` [PATCH v1 1/4] dt-bindings: media: qcom: Add JPEG encoder binding Atanas Filipov
2026-06-12 20:42   ` Frank Li
2026-06-12 23:17   ` Bryan O'Donoghue
2026-06-12 23:38   ` Bryan O'Donoghue
2026-06-13 18:42   ` Krzysztof Kozlowski
2026-07-13  7:43     ` Atanas Filipov
2026-06-23  6:41   ` Luca Weiss
2026-06-12 19:44 ` [PATCH v1 2/4] arm64: dts: qcom: sm8550: Add JPEG encoder node Atanas Filipov
2026-06-12 23:14   ` Bryan O'Donoghue
2026-06-13  9:24     ` Atanas Filipov [this message]
2026-06-13  9:52       ` Bryan O'Donoghue
2026-06-13 11:16         ` Atanas Filipov
2026-06-14  1:13           ` Bryan O'Donoghue
2026-06-19 14:38             ` Konrad Dybcio
2026-06-19 14:57               ` Vladimir Zapolskiy
2026-06-12 23:52   ` Bryan O'Donoghue
2026-06-13 16:05     ` Atanas Filipov
2026-06-14  0:53       ` Bryan O'Donoghue
2026-06-14 21:28   ` Dmitry Baryshkov
2026-06-12 19:44 ` [PATCH v1 3/4] arm64: dts: qcom: sm8250: " Atanas Filipov
2026-06-12 19:44 ` [PATCH v1 4/4] media: qcom: jpeg: Add Qualcomm JPEG V4L2 encoder Atanas Filipov
2026-06-12 20:53   ` Frank Li
2026-06-13 18:43   ` Krzysztof Kozlowski
2026-07-13  7:50     ` Atanas Filipov
2026-06-25 13:43 ` [PATCH v1 0/4] This series adds support for the Qualcomm JPEG V4L2 mem2mem encoder Atanas Filipov
2026-06-25 13:53   ` Krzysztof Kozlowski
2026-07-13  7:52     ` Atanas Filipov

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=3d4e0147-8e62-4872-b881-1452f5e09e85@oss.qualcomm.com \
    --to=atanas.filipov@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=bod@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --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