[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250514155955.GS88033@black.fi.intel.com>
Date: Wed, 14 May 2025 18:59:55 +0300
From: Mika Westerberg <mika.westerberg@...ux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>,
Linus Walleij <linus.walleij@...aro.org>,
linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org,
linux-acpi@...r.kernel.org, Bartosz Golaszewski <brgl@...ev.pl>,
Mika Westerberg <westeri@...nel.org>,
Hans de Goede <hdegoede@...hat.com>
Subject: Re: [PATCH v1 0/4] gpiolib: acpi: Split quirks to its own file
On Tue, May 13, 2025 at 01:00:30PM +0300, Andy Shevchenko wrote:
> The GPIO ACPI helpers use a few quirks which consumes approximately 20%
> of the file. Besides that the necessary bits are sparse and being directly
> referred. Split them to a separate file. There is no functional change.
>
> For the new file I used the Hans' authorship of Hans as he the author of
> all those bits (expect very tiny changes made by this series).
>
> Hans, please check if it's okay and confirm, or suggest better alternative.
>
> Andy Shevchenko (4):
> gpiolib: acpi: Switch to use enum in acpi_gpio_in_ignore_list()
> gpiolib: acpi: Handle deferred list via new API
> gpiolib: acpi: Add acpi_gpio_need_run_edge_events_on_boot() getter
> gpiolib: acpi: Move quirks to a separate file
>
> drivers/gpio/Makefile | 1 +
> .../{gpiolib-acpi.c => gpiolib-acpi-core.c} | 344 +----------------
> drivers/gpio/gpiolib-acpi-quirks.c | 363 ++++++++++++++++++
> drivers/gpio/gpiolib-acpi.h | 15 +
All this -foo-core things look redundant to me. Why not just split it out
and call it gpiolib-quirks.c and put there all the quirks not just ACPI? I
Don't think we want to have gpiolib-of-quirks.c and gpiolog-swnode-quirks.c
and so on.
> 4 files changed, 392 insertions(+), 331 deletions(-)
> rename drivers/gpio/{gpiolib-acpi.c => gpiolib-acpi-core.c} (79%)
> create mode 100644 drivers/gpio/gpiolib-acpi-quirks.c
>
> --
> 2.47.2
Powered by blists - more mailing lists