From: Pengyu Luo <mitltlatltl@gmail.com>
To: jani.nikula@linux.intel.com
Cc: danielt@kernel.org, deller@gmx.de,
dri-devel@lists.freedesktop.org, jingoohan1@gmail.com,
lee@kernel.org, linux-fbdev@vger.kernel.org,
linux-kernel@vger.kernel.org, mitltlatltl@gmail.com
Subject: Re: [RFC PATCH 1/2] backlight: Rename duplicated devices to support dual-backlight setups
Date: Mon, 2 Jun 2025 21:45:32 +0800 [thread overview]
Message-ID: <20250602134533.114602-1-mitltlatltl@gmail.com> (raw)
In-Reply-To: <7dc6a9e5171bc70be23188ffd8c45168fa79aacb@intel.com>
On Mon, May 26, 2025 at 4:53 PM Jani Nikula <jani.nikula@linux.intel.com> wrote:
> On Sun, 25 May 2025, Pengyu Luo <mitltlatltl@gmail.com> wrote:
> > When registering a backlight device, if a device with the same name
> > already exists, append "-secondary" to the new device's name. This is
> > useful for platforms with dual backlight drivers (e.g. some panels use
> > dual ktz8866), where both instances need to coexist.
> >
> > For now, only one secondary instance is supported. If more instances
> > are needed, this logic can be extended with auto-increment or a more
> > flexible naming scheme.
>
> I think for both patches you should consider adding a new interface for
> creating dual backlight scenarios.
>
> For example, this patch turns a driver error (registering two or more
> backlights with the same name) into a special use case, patch 2
> magically connecting the two, and hiding the problem.
>
> With i915, you could have multiple devices, each with multiple
> independent panels with independent backlights. I think accidentally
> trying to register more than one backlight with the same name should
> remain an error, *unless* you want the special case of combined
> backlights.
>
> Similarly, what if you encounter a device with two panels, and two
> *independent* ktz8866?
>
> Please be explicit rather than implicit.
>
For i915, I noticed that it renamed the device internally, so I tried
to rename it in the backlight driver.
Indeed, patch 2 may combine independent panels, I was playing with
android tablet, and I ignored it, you had well explained it. Thanks
for pointing out, I will consider adding a new interface.
Best wishes,
Pengyu
prev parent reply other threads:[~2025-06-02 13:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-25 10:40 Pengyu Luo
2025-05-25 10:40 ` [RFC PATCH 2/2] backlight: Improve support for dual backlight with primary/secondary linkage Pengyu Luo
2025-05-26 8:53 ` [RFC PATCH 1/2] backlight: Rename duplicated devices to support dual-backlight setups Jani Nikula
2025-06-02 13:45 ` Pengyu Luo [this message]
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=20250602134533.114602-1-mitltlatltl@gmail.com \
--to=mitltlatltl@gmail.com \
--cc=danielt@kernel.org \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=jingoohan1@gmail.com \
--cc=lee@kernel.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.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®