Re: [RFT][PATCH v1 6/6] ACPI: NFIT: core: Convert the driver to a platform one

From: Rafael J. Wysocki

Date: Thu Dec 11 2025 - 14:11:29 EST


On Thu, Dec 11, 2025 at 7:40 PM Alison Schofield
<alison.schofield@xxxxxxxxx> wrote:
>
> On Thu, Dec 11, 2025 at 03:22:00PM +0100, Rafael J. Wysocki wrote:
> > From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> >
> > While binding drivers directly to struct acpi_device objects allows
> > basic functionality to be provided, at least in the majority of cases,
> > there are some problems with it, related to general consistency, sysfs
> > layout, power management operation ordering, and code cleanliness.
> >
> > Overall, it is better to bind drivers to platform devices than to their
> > ACPI companions, so convert the ACPI NFIT core driver to a platform one.
> >
> > While this is not expected to alter functionality, it changes sysfs
> > layout and so it will be visible to user space.
>
> Changes sysfs layout? That means it changes sysfs paths?
> Does it change paths defined in Documentation/ABI/testing/sysfs "What:"

No, it doesn't AFAICS.

It changes things like /sys/bus/platform/drivers/ for instance and the like.