All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/25] ACPI: First step to decouple ACPICA debug functionality from ACPI driver
@ 2020-09-17  7:38 Hanjun Guo
  2020-09-17  7:38 ` [PATCH 01/25] ACPI: cmos_rtc: Remove the ACPI_MODULE_NAME() Hanjun Guo
                   ` (25 more replies)
  0 siblings, 26 replies; 30+ messages in thread
From: Hanjun Guo @ 2020-09-17  7:38 UTC (permalink / raw)
  To: linux-acpi; +Cc: Rafael J. Wysocki, Hanjun Guo

For now, ACPI driver debug functionality is mixed of pr_* functions and
ACPI_DEBUG_PRINT() which is provided ACPICA core directly, ACPICA debug
functions are not friendly for users and also make ACPICA core deeply
coupled with ACPI drivers.

With the evolution of the ACPI driver code, lots of the ACPICA debug
functions used in ACPI drivers were removed away, this makes the ACPICA
debug in ACPI driver to be fragile, for example, some of the COMPONENT
such as ACPI_CONTAINER_COMPONENT and ACPI_MEMORY_DEVICE_COMPONENT are not
used anymore, they leaved as dead code.

From another aspert, removing the ACPICA debug functions didn't raise
concerns in the past, so I believe the ACPICA debug in ACPI driver can be
removed and replace with equivalent pr_* debug functions, then decouple
ACPICA debug functionality from ACPI driver.

In order to decouple ACPICA debug functionality from ACPI driver, I do it
in two steps:
 - Remove the dead ACPICA functionality code, and remove the not used
   COMPONENT;
 - Remove all the ACPICA debug code from ACPI drivers.

This patch set is the first step to decouple ACPICA debug functionality
from ACPI driver, just remove the dead ACPICA functionality code and
some cleanups for ACPI drivers, should no functional change if you don't
apply the last two patches.

Patch 1/25 ~ patch 23/25 are removing the dead code and cleanups;
Patch 24/25 ~ patch 25/25 are the actual ABI change.

If the ABI change is making sense, I will go further to remove the
ACPICA debug functionality from ACPI driver, just keep it inside
the ACPICA core.

Hanjun Guo (25):
  ACPI: cmos_rtc: Remove the ACPI_MODULE_NAME()
  ACPI: configfs: Decouple with ACPICA
  ACPI: configfs: Add the missing config_item_put()
  ACPI: debug: Remove the not used function
  ACPI: LPSS: Remove the ACPI_MODULE_NAME()
  ACPI: memhotplug: Remove the leftover ACPICA debug functionality
  ACPI: memhotplug: Remove the state for memory device
  ACPI: platform: Remove the leftover ACPICA debug functinality
  ACPI: container: Remove the leftover ACPICA debug functionality
  ACPI: custom_method: Remove the ACPICA debug code
  ACPI: debugfs: Remove the ACPICA debug code
  ACPI: dock: Remove the ACPICA debug code
  ACPI: event: Remove the ACPICA debug code
  ACPI: PCI: Remove the unused ACPICA debug code
  ACPI: proc: Remove the unused ACPICA debug code
  ACPI: processor: Remove the dead ACPICA debug code
  ACPI: processor: Remove the duplicated ACPI_PROCESSOR_CLASS macro
  ACPI: SBS: Simplify the driver init code
  ACPI: SBS: Simplify the code using module_acpi_driver()
  ACPI: tiny-power-button: Remove the dead ACPICA debug code
  ACPI: tiny-power-button: Simplify the code using module_acpi_driver()
  ACPI: video: Remove the dead ACPICA debug code
  ACPI: wakeup: Remove the dead ACPICA debug code
  ACPI: sysfs: Remove the dead debug interfaces
  ACPI: debug: Update the ACPI debug document

 Documentation/firmware-guide/acpi/debug.rst |  4 ----
 drivers/acpi/acpi_cmos_rtc.c                |  2 --
 drivers/acpi/acpi_configfs.c                |  6 ++----
 drivers/acpi/acpi_dbg.c                     |  7 -------
 drivers/acpi/acpi_lpss.c                    |  2 --
 drivers/acpi/acpi_memhotplug.c              | 17 -----------------
 drivers/acpi/acpi_platform.c                |  2 --
 drivers/acpi/container.c                    |  3 ---
 drivers/acpi/custom_method.c                |  2 --
 drivers/acpi/debugfs.c                      |  3 ---
 drivers/acpi/dock.c                         |  2 --
 drivers/acpi/event.c                        |  3 ---
 drivers/acpi/pci_root.c                     |  2 --
 drivers/acpi/pci_slot.c                     |  3 ---
 drivers/acpi/proc.c                         |  4 ----
 drivers/acpi/processor_core.c               |  3 ---
 drivers/acpi/processor_idle.c               |  1 -
 drivers/acpi/processor_perflib.c            |  1 -
 drivers/acpi/processor_thermal.c            |  4 ----
 drivers/acpi/processor_throttling.c         |  1 -
 drivers/acpi/sbs.c                          | 24 +-----------------------
 drivers/acpi/sysfs.c                        | 18 +++++++-----------
 drivers/acpi/tiny-power-button.c            |  5 +----
 drivers/acpi/video_detect.c                 |  3 ---
 drivers/acpi/wakeup.c                       |  2 --
 include/acpi/acpi_drivers.h                 |  8 ++------
 26 files changed, 13 insertions(+), 119 deletions(-)

-- 
1.7.12.4


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2020-09-19  7:22 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17  7:38 [PATCH 00/25] ACPI: First step to decouple ACPICA debug functionality from ACPI driver Hanjun Guo
2020-09-17  7:38 ` [PATCH 01/25] ACPI: cmos_rtc: Remove the ACPI_MODULE_NAME() Hanjun Guo
2020-09-17  7:38 ` [PATCH 02/25] ACPI: configfs: Decouple with ACPICA Hanjun Guo
2020-09-17  7:38 ` [PATCH 03/25] ACPI: configfs: Add the missing config_item_put() Hanjun Guo
2020-09-17  7:38 ` [PATCH 04/25] ACPI: debug: Remove the not used function Hanjun Guo
2020-09-17  7:38 ` [PATCH 05/25] ACPI: LPSS: Remove the ACPI_MODULE_NAME() Hanjun Guo
2020-09-17  7:38 ` [PATCH 06/25] ACPI: memhotplug: Remove the leftover ACPICA debug functionality Hanjun Guo
2020-09-17  7:38 ` [PATCH 07/25] ACPI: memhotplug: Remove the state for memory device Hanjun Guo
2020-09-17  7:38 ` [PATCH 08/25] ACPI: platform: Remove the leftover ACPICA debug functinality Hanjun Guo
2020-09-17  7:38 ` [PATCH 09/25] ACPI: container: Remove the leftover ACPICA debug functionality Hanjun Guo
2020-09-17  7:38 ` [PATCH 10/25] ACPI: custom_method: Remove the ACPICA debug code Hanjun Guo
2020-09-17  7:38 ` [PATCH 11/25] ACPI: debugfs: " Hanjun Guo
2020-09-17  7:38 ` [PATCH 12/25] ACPI: dock: " Hanjun Guo
2020-09-17  7:38 ` [PATCH 13/25] ACPI: event: " Hanjun Guo
2020-09-17  7:38 ` [PATCH 14/25] ACPI: PCI: Remove the unused " Hanjun Guo
2020-09-17  7:38 ` [PATCH 15/25] ACPI: proc: " Hanjun Guo
2020-09-17  7:38 ` [PATCH 16/25] ACPI: processor: Remove the dead " Hanjun Guo
2020-09-17  7:38 ` [PATCH 17/25] ACPI: processor: Remove the duplicated ACPI_PROCESSOR_CLASS macro Hanjun Guo
2020-09-17  7:38 ` [PATCH 18/25] ACPI: SBS: Simplify the driver init code Hanjun Guo
2020-09-17  7:38 ` [PATCH 19/25] ACPI: SBS: Simplify the code using module_acpi_driver() Hanjun Guo
2020-09-17  7:39 ` [PATCH 20/25] ACPI: tiny-power-button: Remove the dead ACPICA debug code Hanjun Guo
2020-09-17  7:39 ` [PATCH 21/25] ACPI: tiny-power-button: Simplify the code using module_acpi_driver() Hanjun Guo
2020-09-17  7:39 ` [PATCH 22/25] ACPI: video: Remove the dead ACPICA debug code Hanjun Guo
2020-09-17  7:39 ` [PATCH 23/25] ACPI: wakeup: " Hanjun Guo
2020-09-17  7:39 ` [PATCH RFC 24/25] ACPI: sysfs: Remove the dead debug interfaces Hanjun Guo
2020-09-17  7:39 ` [PATCH RFC 25/25] ACPI: debug: Update the ACPI debug document Hanjun Guo
2020-09-17 15:08 ` [PATCH 00/25] ACPI: First step to decouple ACPICA debug functionality from ACPI driver Rafael J. Wysocki
2020-09-18  1:55   ` Hanjun Guo
2020-09-18 13:34     ` Rafael J. Wysocki
2020-09-19  7:22       ` Hanjun Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.