All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hanjun Guo <guohanjun@huawei.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>
Subject: Re: [PATCH 00/25] ACPI: First step to decouple ACPICA debug functionality from ACPI driver
Date: Sat, 19 Sep 2020 15:22:28 +0800	[thread overview]
Message-ID: <a792f08d-1680-bfc6-fc8d-01e278a9627f@huawei.com> (raw)
In-Reply-To: <CAJZ5v0jfxESXKJDV_JimG-ao58GjfvX6ZT2Sch+qn24ptVOx4w@mail.gmail.com>

Hi Rafael,

On 2020/9/18 21:34, Rafael J. Wysocki wrote:
> On Fri, Sep 18, 2020 at 3:55 AM Hanjun Guo <guohanjun@huawei.com> wrote:
>>
>> Hi Rafael,
>>
>> On 2020/9/17 23:08, Rafael J. Wysocki wrote:
>>> Hi Hanjun,
>>>
>>> On Thu, Sep 17, 2020 at 10:34 AM Hanjun Guo <guohanjun@huawei.com> wrote:
>>>>
>>>> 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.
>>>
>>> This is a worthy goal, but the patch series appears to be a mixed bag
>>> of changes some of which are not directly related to this goal.
>>
>> Sorry for that, I sent this patch set in a hurry, I will update
>> as you suggested.
>>>>
>>>> Hanjun Guo (25):
>>>>     ACPI: cmos_rtc: Remove the ACPI_MODULE_NAME()
>>>
>>> This, for example, should be a separate cleanup patch.
>>
>> ACPI_MODULE_NAME() and _COMPONENT are both used for ACPICA
>> debug functionality, so I will put them in the decouple
>> patch set.
> 
> So if the ACPICA debug functionality is not used in the given C file,
> you can drop these macros from there right away without any side
> effects.
> 
> Why don't you do that in a separate series of patches then?

Good point, so I will split this patch set into four parts:

- The bugfix patch goes in separate from the rest of the series,
   already sent out.

- Cleanup patches which is not related to ACPICA debug,
   - ACPI: debug: Remove the not used function
   - ACPI: memhotplug: Remove the state for memory device
   - 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: Simplify the code using module_acpi_driver()

- A patch set removing all the leftover ACPICA debug functionality
   which is not used in the C file, no functional change.

- A patch set for actual ABI change (RFC).

Do it make sense to you?

Thanks
Hanjun

      reply	other threads:[~2020-09-19  7:22 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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=a792f08d-1680-bfc6-fc8d-01e278a9627f@huawei.com \
    --to=guohanjun@huawei.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=rjw@rjwysocki.net \
    /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 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.