[RFC PATCH 1/6] bus: Extract simple-bus into self-contained driver

Konrad Dybcio konrad.dybcio at oss.qualcomm.com
Thu Jan 9 06:02:17 PST 2025


On 8.01.2025 11:44 PM, Stephen Boyd wrote:
> Quoting Rob Herring (2025-01-08 06:11:28)
>> On Tue, Jan 7, 2025 at 7:28 PM Stephen Boyd <swboyd at chromium.org> wrote:
>>>
>>> Extract the simple bus into a self contained driver so that devices are
>>> still populated when a node has two (or more) compatibles with the least
>>> specific one being the generic "simple-bus". Allow the driver to be a
>>> module so that in a fully modular build a driver module for the more
>>> specific compatible will be loaded first before trying to match this
>>> driver.
>>>
>>> Cc: Rob Herring <robh at kernel.org>
>>> Cc: Saravana Kannan <saravanak at google.com>
>>> Cc: <devicetree at vger.kernel.org>
>>> Cc: Arnd Bergmann <arnd at arndb.de>
>>> Cc: "Uwe Kleine-König" <u.kleine-koenig at baylibre.com>
>>> Cc: Bjorn Andersson <andersson at kernel.org>
>>> Cc: Konrad Dybcio <konradybcio at kernel.org>
>>> Cc: <linux-arm-msm at vger.kernel.org>
>>> Signed-off-by: Stephen Boyd <swboyd at chromium.org>
>>> ---

[...]

> Maybe the best approach is to simply avoid all of this and drop the
> "simple-bus" compatible from the soc node? It introduces an annoying
> hurdle where you have to enable the new driver that does exactly the
> same thing as "simple-bus" does so you continue to have a working
> system, but it avoids the headaches of trying to make the fallback to
> "simple-bus" work and it would match how new DTs would be written. We
> could make the driver 'default ARCH_<SOC_VENDOR>' so that it gets built
> for olddefconfig users too.

I think it even makes logical sense for the /soc node's compatible to
be.. you know.. the model of the SoC we're modeling

Konrad



More information about the linux-arm-kernel mailing list