From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Richard Fitzgerald <rf@opensource.cirrus.com>,
David Rhodes <david.rhodes@cirrus.com>,
Lee Jones <lee@kernel.org>,
patches@opensource.cirrus.com, linux-sound@vger.kernel.org,
linux-kernel@vger.kernel.org, mfd@lists.linux.dev
Subject: Re: [PATCH v2 2/4] ASoC: arizona: always parse device properties regardless of platform data
Date: Tue, 24 Nov 2026 14:23:45 +0000 [thread overview]
Message-ID: <awWd8d9Wt3oY0gFf@opensource.cirrus.com> (raw)
In-Reply-To: <20261123-arizona-asoc-v2-2-6323d3c0961a@gmail.com>
On Mon, Nov 23, 2026 at 03:00:55PM -0800, Dmitry Torokhov wrote:
> Always parse device properties in the Arizona jack detection driver and
> codec drivers even when platform data is provided, allowing DT, ACPI,
> or software node properties to augment platform data configurations.
>
> In the jack detection driver, only validate and apply the
> wlf,hpdet-channel property when it is present, leaving any existing
> platform data value untouched when the property is absent or invalid,
> and preserve existing boolean flags using bitwise OR assignments.
>
> Default an unset headphone detection channel (0, corresponding to
> ARIZONA_ACCDET_MODE_MIC and invalid for headphone impedance polling) to
> ARIZONA_ACCDET_MODE_HPL during jack probe.
> Commit 9e86b2ad4c11 ("extcon: arizona: Add support for select
> accessory detect mode when headphone detection") originally placed this
> default only in the OF property parser, inadvertently leaving
> platform-data boards that omit the channel setting at 0.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
next prev parent reply other threads:[~2026-11-24 14:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 23:00 [PATCH v2 0/4] ASoC: arizona: switch to generic device properties and clean up Dmitry Torokhov
2026-11-23 23:00 ` [PATCH v2 1/4] ASoC: arizona: convert audio pdata parsing to generic device properties Dmitry Torokhov
2026-11-24 13:42 ` Charles Keepax
2026-11-23 23:00 ` [PATCH v2 2/4] ASoC: arizona: always parse device properties regardless of platform data Dmitry Torokhov
2026-11-24 14:23 ` Charles Keepax [this message]
2026-11-23 23:00 ` [PATCH v2 3/4] ASoC: arizona: drop unused HPDET accessory ID support Dmitry Torokhov
2026-11-24 14:24 ` Charles Keepax
2026-11-23 23:00 ` [PATCH v2 4/4] ASoC: arizona: clean up coding style and formatting Dmitry Torokhov
2026-11-24 14:31 ` Charles Keepax
2026-11-24 15:18 ` [PATCH v2 0/4] ASoC: arizona: switch to generic device properties and clean up Mark Brown
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=awWd8d9Wt3oY0gFf@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=broonie@kernel.org \
--cc=david.rhodes@cirrus.com \
--cc=dmitry.torokhov@gmail.com \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=patches@opensource.cirrus.com \
--cc=perex@perex.cz \
--cc=rf@opensource.cirrus.com \
--cc=tiwai@suse.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 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.