public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hansg@kernel.org>
To: Andy Shevchenko <andy.shevchenko@gmail.com>,
	"Mario Limonciello (AMD) (kernel.org)" <superm1@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: Sun, 21 Sep 2025 22:11:45 +0200	[thread overview]
Message-ID: <f40ab4a5-1b17-4022-9539-37e470b7a175@kernel.org> (raw)
In-Reply-To: <CAHp75Vf-MMcVGDt5xAMB94N866jZROQPKpvu5dZ-nCEPA9j-pg@mail.gmail.com>

Hi All,

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.

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

Regards,

Hans



  reply	other threads:[~2025-09-21 20:11 UTC|newest]

Thread overview: 7+ 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-20 20:13 ` kernel test robot
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 [this message]
2025-09-21 20:25       ` Andy Shevchenko
2025-09-22 16:21         ` Mario Limonciello (AMD) (kernel.org)

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=f40ab4a5-1b17-4022-9539-37e470b7a175@kernel.org \
    --to=hansg@kernel.org \
    --cc=andy.shevchenko@gmail.com \
    --cc=andy@kernel.org \
    --cc=brgl@bgdev.pl \
    --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 \
    --cc=superm1@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