From: Mario Limonciello <superm1@kernel.org>
To: Gergo Koteles <soyer@irl.hu>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ACPI: x86: s2idle: Remove dead code in lps0_device_attach()
Date: Fri, 9 Jan 2026 10:19:11 -0600 [thread overview]
Message-ID: <8643ee12-2240-4d28-ba5b-32c08f597af3@kernel.org> (raw)
In-Reply-To: <20260109001619.37532-1-soyer@irl.hu>
On 1/8/26 6:16 PM, Gergo Koteles wrote:
> The rev_id is always 0 for AMD since commit
> e32d546483a2 ("ACPI: x86: Drop quirk for HP Elitebook"),
> so this condition will never be true.
>
> Remove the dead code.
>
> Signed-off-by: Gergo Koteles <soyer@irl.hu>
Makes sense, thanks!
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
> ---
> drivers/acpi/x86/s2idle.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/acpi/x86/s2idle.c b/drivers/acpi/x86/s2idle.c
> index 6d4d06236f61..a095b6f4401b 100644
> --- a/drivers/acpi/x86/s2idle.c
> +++ b/drivers/acpi/x86/s2idle.c
> @@ -459,9 +459,6 @@ static int lps0_device_attach(struct acpi_device *adev,
> lps0_dsm_func_mask = (lps0_dsm_func_mask << 1) | 0x1;
> acpi_handle_debug(adev->handle, "_DSM UUID %s: Adjusted function mask: 0x%x\n",
> ACPI_LPS0_DSM_UUID_AMD, lps0_dsm_func_mask);
> - } else if (lps0_dsm_func_mask_microsoft > 0 && rev_id) {
> - lps0_dsm_func_mask_microsoft = -EINVAL;
> - acpi_handle_debug(adev->handle, "_DSM Using AMD method\n");
> }
> } else {
> rev_id = 1;
next prev parent reply other threads:[~2026-01-09 16:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-09 0:16 Gergo Koteles
2026-01-09 16:19 ` Mario Limonciello [this message]
2026-01-22 20:47 ` Rafael J. Wysocki
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=8643ee12-2240-4d28-ba5b-32c08f597af3@kernel.org \
--to=superm1@kernel.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=soyer@irl.hu \
/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
all inboxes | Powered by JetHome®