Linux ACPI
 help / color / mirror / Atom feed
From: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	LKML <linux-kernel@vger.kernel.org>,
	"Linux ACPI" <linux-acpi@vger.kernel.org>,
	"Hans de Goede" <hansg@kernel.org>,
	platform-driver-x86@vger.kernel.org,
	"Thadeu Lima de Souza Cascardo" <cascardo@holoscopio.com>
Subject: Re: [PATCH v2 00/10] platform/x86: classmate-laptop: Bind to platform devices instead of ACPI ones
Date: Tue, 12 May 2026 12:09:55 -0300	[thread overview]
Message-ID: <agNCw7_AL-PIemmO@quatroqueijos.cascardo.eti.br> (raw)
In-Reply-To: <3415394.44csPzL39Z@rafael.j.wysocki>

On Mon, May 11, 2026 at 10:01:45PM +0200, Rafael J. Wysocki wrote:
> Hi All,
> 
> This is an update of
> 
> https://lore.kernel.org/linux-acpi/1956046.tdWV9SEqCh@rafael.j.wysocki/
> 
> sent mostly because I have realized that using devm_kzalloc() in the first
> patch simplifies things going forward, but also it adds ACPI companion
> checks against NULL at probe time that were missing previously.
> 
> This series is part of a larger effort to switch over all drivers using
> the struct acpi_driver interface to the more common struct platform_driver
> interface and eliminate the former.  The background is explained in
> Documentation/driver-api/acpi/acpi-drivers.rst and in the changelog of
> the patch that introduced the above document:
> 
> https://lore.kernel.org/all/2396510.ElGaqSPkdT@rafael.j.wysocki/
> 
> The bottom line is that the kernel would be better off without struct
> acpi_driver and so it is better to get rid of it.
> 
> This series carries out driver conversion of 5 subdrivers in the platform x86
> classmate-laptop driver.
> 
> The first 5 patches in the series are preliminary.
> 
> Patch [01/10] converts two subdrivers in classmate-laptop to using
> devm_kzalloc() for allocating memory which helps to avoid memory leaks
> during driver removal.
> 
> Patch [02/10] modifies 2 subdrivers in classmate-laptop so that their probe
> rollback code ordering is the same as the removal one.
> 
> Patches [03-04/10] change the type of the first argument in 2 helper functions
> in classmate-laptop and rename them.
> 
> Patch [05/10] updates classmate-laptop subdrivers to install their own ACPI
> notify handlers instead of using the .notify() callback in struct acpi_driver.
> 
> The remaining patches convert the classmate-laptop subdrivers to platform
> drivers, one at a time.
> 
> Patch [06/10] converts the accel-v4 subdriver in classmate-laptop to using
> struct platform_driver for device binding.
> 
> Patch [07/10] converts the accel subdriver in classmate-laptop to using
> struct platform_driver for device binding.
> 
> Patch [08/10] converts the tablet subdriver in classmate-laptop to using
> struct platform_driver for device binding.
> 
> Patch [09/10] converts the ipml subdriver in classmate-laptop to using
> struct platform_driver for device binding.
> 
> Patch [10/10] converts the keys subdriver in classmate-laptop to using
> struct platform_driver for device binding.
> 
> Thanks!
> 
> 
> 
> 

For the whole series:

Acked-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>

      parent reply	other threads:[~2026-05-12 15:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-11 20:01 [PATCH v2 00/10] platform/x86: classmate-laptop: Bind to platform devices instead of ACPI ones Rafael J. Wysocki
2026-05-11 20:03 ` [PATCH v2 01/10] platform/x86: classmate-laptop: Address memory leaks on driver removal Rafael J. Wysocki
2026-05-11 20:04 ` [PATCH v2 02/10] platform/x86: classmate-laptop: Unify probe rollback and remove code Rafael J. Wysocki
2026-05-11 20:06 ` [PATCH v2 03/10] platform/x86: classmate-laptop: Pass struct device pointer to helpers Rafael J. Wysocki
2026-05-11 20:07 ` [PATCH v2 04/10] platform/x86: classmate-laptop: Rename two helper functions Rafael J. Wysocki
2026-05-11 20:08 ` [PATCH v2 05/10] platform/x86: classmate-laptop: Register ACPI notify handlers directly Rafael J. Wysocki
2026-05-11 20:10 ` [PATCH v2 06/10] platform/x86: classmate-laptop: Convert v4 accel driver to a platform one Rafael J. Wysocki
2026-05-11 20:11 ` [PATCH v2 07/10] platform/x86: classmate-laptop: Convert " Rafael J. Wysocki
2026-05-11 20:12 ` [PATCH v2 08/10] platform/x86: classmate-laptop: Convert tablet " Rafael J. Wysocki
2026-05-11 20:14 ` [PATCH v2 09/10] platform/x86: classmate-laptop: Convert ipml " Rafael J. Wysocki
2026-05-11 20:15 ` [PATCH v2 10/10] platform/x86: classmate-laptop: Convert keys " Rafael J. Wysocki
2026-05-12 15:09 ` Thadeu Lima de Souza Cascardo [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=agNCw7_AL-PIemmO@quatroqueijos.cascardo.eti.br \
    --to=cascardo@igalia.com \
    --cc=cascardo@holoscopio.com \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rafael@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