[PATCH 4/6] platform/apple: Add new Apple Mac SMC driver

Linus Walleij linus.walleij at linaro.org
Thu Sep 8 06:29:44 PDT 2022


On Thu, Sep 8, 2022 at 2:58 PM Hector Martin <marcan at marcan.st> wrote:

> > If the MFD route is the best, then you can register each of the
> > devices, including the *-core from drivers/mfd.  Grep for "cross-ec"
> > as a relatively recently good example.
>
> I think cros-ec is similar enough, yeah. As long as you don't mind
> having the core codebase in mfd/ (4 files: core, rtkit backend, and
> future T2 and legacy backends) we can do that.

I'd even suggest its own subfolder under MFD, if you already know
that there will likely be more than these 4 files.

Though nothing else has a subdirectory in MFD right now so
maybe Lee should approve of that first...

The obvious upside to using MFD is that it has an active maintainer
and patches get reviewed and merged swiftly, whereas
drivers/platform is usually managed by SoC and x86 tip maintainers
and what not.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list