mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Richard Fitzgerald <rf@opensource.cirrus.com>
To: Mark Brown <broonie@kernel.org>
Cc: linux-spi@vger.kernel.org, linux-sound@vger.kernel.org,
	linux-kernel@vger.kernel.org, patches@opensource.cirrus.com
Subject: Re: [PATCH] spi: cs42l43: Workaround for wrong speaker ID on Dell XPS 13 DX13260
Date: Fri, 25 Sep 2026 16:28:47 +0100	[thread overview]
Message-ID: <40393c59-fc33-49be-a67a-1ede7df67b62@opensource.cirrus.com> (raw)
In-Reply-To: <537aaad3-685b-479e-800a-a5abb94acaa7@sirena.org.uk>

On 25/9/26 15:51, Mark Brown wrote:
> On Fri, Sep 25, 2026 at 02:14:34PM +0100, Richard Fitzgerald wrote:
>> On 20/9/26 16:14, Mark Brown wrote:
> 
>>> Could we see an -EBUSY if there's something else using another GPIO from
>>> the same provider?
> 
>> I'm not sure what you mean by "another GPIO from the same provider".
>> If you mean can the codec driver also try to read the same GPIOs:
> 
> I mean we're looping over all the GPIOs from the provider, what if
> something else already requested one of the others?

This is only done for ACPI. We're looping over all the pins in the
consumer's GPIO request.

In DT the "x-gpios" property points at the GPIO provider.

In ACPI the "x-gpios" property is a Linux-specific compatibility fudge
that points to the consumer's *real* ACPI-syntax GPIO request.

Take a look at Documentation/firmware-guide/acpi/gpio-properties.rst

GpioIo() is the ACPI way to request GPIOs. The numbers inside the brace
list are the pin numbers being requested from the provider. The loop
is walking through that list trying to get each requested pin.


  reply	other threads:[~2026-09-25 15:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-19 13:47 Richard Fitzgerald
2026-09-20 15:14 ` Mark Brown
2026-09-25 13:14   ` Richard Fitzgerald
2026-09-25 14:51     ` Mark Brown
2026-09-25 15:28       ` Richard Fitzgerald [this message]
2026-09-25 15:59 ` Richard Fitzgerald

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=40393c59-fc33-49be-a67a-1ede7df67b62@opensource.cirrus.com \
    --to=rf@opensource.cirrus.com \
    --cc=broonie@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=patches@opensource.cirrus.com \
    /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®