From: "Mario Limonciello (AMD) (kernel.org)" <superm1@kernel.org>
To: Andy Shevchenko <andy.shevchenko@gmail.com>,
Hans de Goede <hansg@kernel.org>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>,
Andy Shevchenko <andy@kernel.org>,
Bartosz Golaszewski <brgl@bgdev.pl>,
Linus Walleij <linus.walleij@linaro.org>,
linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH 6.17 REGRESSION FIX] gpiolib: acpi: Make set debounce errors non fatal
Date: Mon, 22 Sep 2025 11:21:22 -0500 [thread overview]
Message-ID: <79d7c45c-ccc9-411f-b9a8-47c02818f64c@kernel.org> (raw)
In-Reply-To: <CAHp75VfaRcQOLjrd_pVK4XYPRN_4yM=acyVsOKThV3oMw1fB0g@mail.gmail.com>
On 9/21/2025 3:25 PM, Andy Shevchenko wrote:
> On Sun, Sep 21, 2025 at 11:11 PM Hans de Goede <hansg@kernel.org> wrote:
>> On 21-Sep-25 9:03 PM, Andy Shevchenko wrote:
>>> On Sun, Sep 21, 2025 at 9:09 PM Mario Limonciello (AMD) (kernel.org)
>>> <superm1@kernel.org> wrote:
>>>> On 9/20/2025 3:12 PM, Hans de Goede wrote:
>
> ...
>
>>>> Looks pretty much identical now to what I sent in my v3 and that Andy
>>>> had requested we change to make it fatal [1].
>>>>
>>>> Where is this bad GPIO value coming from? It's in the GpioInt()
>>>> declaration? If so, should the driver actually be supporting this?
>>>
>>> Since it's in acpi_find_gpio() it's about any GPIO resource type.
>>> Sorry, it seems I missed this fact. I was under the impression that v4
>>> was done only for the GpioInt() case. With this being said, the
>>> GpioIo() should not be fatal (it's already proven by cases in the wild
>>> that sometimes given values there are unsupported by HW), but
>>> GpioInt() in my opinion needs a justification to become non-fatal.
>>
>> GpioInt() debounce setting not succeeding already is non fatal in
>> the acpi_request_own_gpiod() case, which is used for ACPI events
>> (_AEI resources) and that exact use-case is why it was made non-fatal,
>> so no this is not only about GpioIo() resources. See commit
>> cef0d022f553 ("gpiolib: acpi: Make set-debounce-timeout failures non
>> fatal")
>>
>> IOW we need set debounce failures to be non-fatal for both the GpioIo
>> and GpioInt cases and this fix is correct as is.
>
> Okay, since it doesn't change the state of affairs with for
> acpi_dev_gpio_irq_wake_get_by(), it's fair enough to get it as is.
> Mario, do you agree with Hans' explanations?
>
Yeah it's fine as is, no concerns.
>> It is very likely too late to fix this *regression* for 6.17.0, please
>> queue this up for merging ASAP so that we can get a fix added to 6.17.1
>
>
prev parent reply other threads:[~2025-09-22 16:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-20 20:12 [PATCH 6.17 REGRESSION FIX] gpiolib: acpi: Make set debounce errors non fatal Hans de Goede
2025-09-21 18:08 ` Mario Limonciello (AMD) (kernel.org)
2025-09-21 19:03 ` Andy Shevchenko
2025-09-21 20:11 ` Hans de Goede
2025-09-21 20:25 ` Andy Shevchenko
2025-09-22 16:21 ` Mario Limonciello (AMD) (kernel.org) [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=79d7c45c-ccc9-411f-b9a8-47c02818f64c@kernel.org \
--to=superm1@kernel.org \
--cc=andy.shevchenko@gmail.com \
--cc=andy@kernel.org \
--cc=brgl@bgdev.pl \
--cc=hansg@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=stable@vger.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;
as well as URLs for NNTP newsgroup(s).