From: Lee Jones <lee@kernel.org>
To: Maciej Strozek <mstrozek@opensource.cirrus.com>
Cc: Mark Brown <broonie@kernel.org>, Takashi Iwai <tiwai@suse.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Jaroslav Kysela <perex@perex.cz>,
Bard Liao <yung-chuan.liao@linux.intel.com>,
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>,
linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org,
patches@opensource.cirrus.com, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 3/4] mfd: cs42l43: Add support for the B variant
Date: Thu, 22 Jan 2026 11:59:34 +0000 [thread overview]
Message-ID: <20260122115934.GG3831112@google.com> (raw)
In-Reply-To: <20260116152054.85990-4-mstrozek@opensource.cirrus.com>
On Fri, 16 Jan 2026, Maciej Strozek wrote:
> Introducing CS42L43B codec, a variant of CS42L43 which can be driven by
> the same driver.
>
> Changes in CS42L43 driver specific for CS42L43B:
> - Decimator 1 and 2 are dedicated to ADC, can't be selected for PDM
> - Decimators 3 and 4 are connected to PDM1
> - Added Decimator 5 and 6 for PDM2
> - Supports SoundWire Clock Gearing
> - Updated ROM requiring no patching
> - Reduced RAM space
> - Each ISRC has 4 decimators now
>
> Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
> ---
> Changes in v2:
> - Rework the mechanism to identify the new variant along with some
> error handling improvements.
> - Added some comments in cs42l43_readable_register() for clarity.
> - Add handling of the I2C path for the B variant
> ---
> drivers/mfd/cs42l43-i2c.c | 7 ++-
> drivers/mfd/cs42l43-sdw.c | 4 +-
> drivers/mfd/cs42l43.c | 93 +++++++++++++++++++++++++++-----
> drivers/mfd/cs42l43.h | 2 +-
> include/linux/mfd/cs42l43-regs.h | 76 ++++++++++++++++++++++++++
> include/linux/mfd/cs42l43.h | 1 +
> 6 files changed, 166 insertions(+), 17 deletions(-)
>
> diff --git a/drivers/mfd/cs42l43-i2c.c b/drivers/mfd/cs42l43-i2c.c
> index a2ab001a600a..0a0ab5e549a5 100644
> --- a/drivers/mfd/cs42l43-i2c.c
> +++ b/drivers/mfd/cs42l43-i2c.c
> @@ -47,6 +47,7 @@ static int cs42l43_i2c_probe(struct i2c_client *i2c)
> cs42l43->irq = i2c->irq;
> /* A device on an I2C is always attached by definition. */
> cs42l43->attached = true;
> + cs42l43->variant_id = (long)device_get_match_data(cs42l43->dev);
[...]
> diff --git a/include/linux/mfd/cs42l43.h b/include/linux/mfd/cs42l43.h
> index 2239d8585e78..8313f9e8c722 100644
> --- a/include/linux/mfd/cs42l43.h
> +++ b/include/linux/mfd/cs42l43.h
> @@ -98,6 +98,7 @@ struct cs42l43 {
> bool sdw_pll_active;
> bool attached;
> bool hw_lock;
> + int variant_id;
> };
long != int
--
Lee Jones [李琼斯]
next prev parent reply other threads:[~2026-01-22 11:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-16 15:20 [PATCH v2 0/4] Add support for CS42L43B codec to CS42L43 driver Maciej Strozek
2026-01-16 15:20 ` [PATCH v2 1/4] ASoC: sdw_utils: Add CS42L43B codec info Maciej Strozek
2026-01-16 15:20 ` [PATCH v2 2/4] ASoC: dt-bindings: cirrus,cs42l43: Add CS42L43B variant Maciej Strozek
2026-01-17 11:39 ` Krzysztof Kozlowski
2026-01-16 15:20 ` [PATCH v2 3/4] mfd: cs42l43: Add support for the B variant Maciej Strozek
2026-01-22 11:59 ` Lee Jones [this message]
2026-01-16 15:20 ` [PATCH v2 4/4] ASoC: " Maciej Strozek
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=20260122115934.GG3831112@google.com \
--to=lee@kernel.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=mstrozek@opensource.cirrus.com \
--cc=patches@opensource.cirrus.com \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@linux.intel.com \
--cc=tiwai@suse.com \
--cc=yung-chuan.liao@linux.intel.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