From: Jean Delvare <jdelvare@suse.de>
To: Dave Stevenson <dave.stevenson@raspberrypi.com>
Cc: Marek Vasut <marex@denx.de>, Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] regulator: Let raspberrypi drivers depend on ARM
Date: Thu, 30 Oct 2025 13:33:28 +0100 [thread overview]
Message-ID: <58bc4e17423beebee358baece311a46b5525b9b0.camel@suse.de> (raw)
In-Reply-To: <CAPY8ntCTuTBU9PRkt-ja540ir+0HUZCuYvPpFgKhWpFsOvM8Ww@mail.gmail.com>
Hi Dave,
On Thu, 2025-10-30 at 11:09 +0000, Dave Stevenson wrote:
> Sorry I was out of the office for a few days.
>
> On Mon, 27 Oct 2025 at 12:22, Jean Delvare <jdelvare@suse.de> wrote:
> >
> > The Raspberry Pi drivers aren't useful on other architectures, so
> > only offer them on ARM and ARM64, except for build testing purposes.
> >
> > Signed-off-by: Jean Delvare <jdelvare@suse.de>
> > ---
> > Marek, Dave, would you be OK with that change?
>
> These regulator drivers are for a MIPI DSI display, so they can work
> with any platform that has a DSI interface. Currently that is mainly
> ARM/ARM64 SoC, but there's nothing stopping RISC-V or x86 having a DSI
> interface.
>
> Checking and [1] says the Intel Alder Lake 12th gen processors support
> DSI, although presumably that would also then need ACPI support in the
> driver.
> [2] says the OrangePi RV2 is a RISC-V board with DSI interface, and
> there is at least basic support for the board in mainline, although
> not obviously the DSI block.
>
> Personally I see little point in reducing the scope to just ARM/ARM64
> as it may well need to be extended again.
I personally see no problem with extending the scope as new hardware is
released. I think it's much better than building drivers on
architectures where they aren't needed.
> What's your reasoning for
> saying they aren't useful on other architectures?
My reasoning was that the config symbol names have RASPBERRYPI, and
their labels start with "Raspberry Pi". So I concluded that these
drivers were only useful on Raspberry Pi.
If the use of these drivers is not restricted to Raspberry Pi hardware,
then I agree that binding these options to a specific architecture
isn't right. But then these config options should be renamed and
relabeled to properly describe what interfaces and devices they
actually relate to.
As a side note, I'm surprised that these options get to be selected
independently from the touchscreen driver for the same hardware.
Presumably driving the regulator is only meaningful if the touchscreen
driver is also built and loaded?
To give you some context, the problem I am trying to address is that
with every new kernel version, all distribution kernel maintainers out
there need to make decisions on which drivers to include on every
supported architecture. Limiting drivers to their intended
architecture(s) makes this process faster and less error-prone. Which
in turn avoids wasting resources later on building, and backporting
security fixes to, drivers which aren't actually used.
Thanks,
--
Jean Delvare
SUSE L3 Support
next prev parent reply other threads:[~2025-10-30 12:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-27 12:22 Jean Delvare
2025-10-28 11:17 ` Mark Brown
2025-10-30 11:09 ` Dave Stevenson
2025-10-30 12:33 ` Jean Delvare [this message]
2025-12-15 12:36 ` Geert Uytterhoeven
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=58bc4e17423beebee358baece311a46b5525b9b0.camel@suse.de \
--to=jdelvare@suse.de \
--cc=broonie@kernel.org \
--cc=dave.stevenson@raspberrypi.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@denx.de \
/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®