public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: Dikshita Agarwal <quic_dikshita@quicinc.com>
Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
	Abhinav Kumar <quic_abhinavk@quicinc.com>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	quic_vgarodia@quicinc.com, mchehab@kernel.org, robh@kernel.org,
	krzk+dt@kernel.org, p.zabel@pengutronix.de, hverkuil@xs4all.nl,
	sebastian.fricke@collabora.com, bryan.odonoghue@linaro.org,
	neil.armstrong@linaro.org, nicolas@ndufresne.ca,
	u.kleine-koenig@baylibre.com, stefan.schmidt@linaro.org,
	lujianhua000@gmail.com, linux-arm-msm@vger.kernel.org,
	linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, krzysztof.kozlowski@linaro.org
Subject: Re: [RFC PATCH v10 1/2] media: iris: introduce helper module to select video driver
Date: Wed, 5 Feb 2025 09:30:43 +0100	[thread overview]
Message-ID: <Z6MhsxskgbFX3dFd@hovoldconsulting.com> (raw)
In-Reply-To: <69dc3c64-e0b7-a453-a73b-6a3c9dbded7d@quicinc.com>

On Wed, Feb 05, 2025 at 11:47:12AM +0530, Dikshita Agarwal wrote:
> On 2/5/2025 4:39 AM, Dmitry Baryshkov wrote:
> > On Tue, Feb 04, 2025 at 05:00:31PM +0100, Johan Hovold wrote:
> >> On Tue, Feb 04, 2025 at 04:55:58PM +0200, Dmitry Baryshkov wrote:
> >>> On Tue, Feb 04, 2025 at 10:31:49AM +0100, Johan Hovold wrote:

> >>>> Unbinding and rebinding drivers is not part of any normal work flow
> >>>> expect possibly during development. And a developer can easily compare
> >>>> Venus and Iris for 8250 without a module parameter too.
> >>>
> >>> Yes, we are talking about development. And yes, modparam helps. If you'd
> >>> like to do two separate kernel builds, that's fine.
> >>
> >> Please just motivate why you think this is needed as part of the
> >> submission. And make sure that the implementation is sane (e.g. not some
> >> random probe defer indefinitely thing).
> >>
> >> Like I said, having two drivers for the same hardware is normally not
> >> something that is acceptable, and this would need to be a transitional
> >> thing as we both agree. One way to guarantee that is to not expose it to
> >> regular users until it is ready (e.g. a Kconfig hidden behind
> >> CONFIG_EXPERT or similar). Otherwise, I fear you'll end up supporting
> >> both forever (with at least one of them bitrotting behind that module
> >> parameter over time).
> > 
> > I think I'm fine with hiding IRIS behind CONFIG_EXPERT, might be a good
> > idea.

I was only thinking about the (experimental) support for hardware
already supported by venus (i.e. initially 8250) and possibly the
module parameter if you think that is essential.

I can imagine the feature set becoming non-overlapping overtime so that
you end up with some users depending on venus and some depending on iris
for the same hardware if you expose iris support prematurely.

> Are you suggesting to add a dependency on CONFIG_EXPERT for IRIS driver?
> Something like:
> config VIDEO_QCOM_IRIS
>         tristate "Qualcomm iris V4L2 decoder driver"
>         depends on EXPERT
> 
> This will impact the enablement of iris driver on SM8550 as well.

Right, it would, and that is not necessarily right.

> And will this also be needed to be captured in cover letter?

Yes, whatever solution you end up with need to be described and
motivated in the cover letter (and commit messages) so that the
reasoning can be evaluated.

Johan

  reply	other threads:[~2025-02-05  8:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-28  8:04 [RFC PATCH v10 0/2] Add helper module to select video driver Dikshita Agarwal
2025-01-28  8:04 ` [RFC PATCH v10 1/2] media: iris: introduce " Dikshita Agarwal
2025-01-28 16:14   ` Dmitry Baryshkov
2025-01-29  9:53     ` Dikshita Agarwal
2025-01-29 11:27       ` Dmitry Baryshkov
2025-01-29 10:44   ` Krzysztof Kozlowski
2025-01-31 18:44     ` Abhinav Kumar
2025-02-03  8:22       ` Johan Hovold
2025-02-03 15:16         ` Dmitry Baryshkov
2025-02-03 16:34           ` Krzysztof Kozlowski
2025-02-04  9:35             ` Johan Hovold
2025-02-04  9:31           ` Johan Hovold
2025-02-04 14:55             ` Dmitry Baryshkov
2025-02-04 16:00               ` Johan Hovold
2025-02-04 23:09                 ` Dmitry Baryshkov
2025-02-05  6:17                   ` Dikshita Agarwal
2025-02-05  8:30                     ` Johan Hovold [this message]
2025-02-04 15:08             ` Vikash Garodia
2025-02-04 16:05               ` Johan Hovold
2025-01-28  8:04 ` [RFC PATCH v10 2/2] media: iris: enable video driver probe of SM8250 SoC Dikshita Agarwal

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=Z6MhsxskgbFX3dFd@hovoldconsulting.com \
    --to=johan@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=hverkuil@xs4all.nl \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=lujianhua000@gmail.com \
    --cc=mchehab@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=nicolas@ndufresne.ca \
    --cc=p.zabel@pengutronix.de \
    --cc=quic_abhinavk@quicinc.com \
    --cc=quic_dikshita@quicinc.com \
    --cc=quic_vgarodia@quicinc.com \
    --cc=robh@kernel.org \
    --cc=sebastian.fricke@collabora.com \
    --cc=stefan.schmidt@linaro.org \
    --cc=u.kleine-koenig@baylibre.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