* [PATCH -next 1/2] sound: soc: codecs: wcd9335: Convert irq chip to config regs
2022-07-21 10:25 [PATCH -next 0/2] ASoC: Cleanup deprecated regmap-irq functionality Aidan MacDonald
@ 2022-07-21 10:25 ` Aidan MacDonald
2022-07-21 10:25 ` [PATCH -next 2/2] sound: soc: codecs: wcd938x: Remove spurious type_base from irq chip Aidan MacDonald
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Aidan MacDonald @ 2022-07-21 10:25 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai, srinivas.kandagatla, bgoswami
Cc: alsa-devel, linux-kernel
Type registers in regmap-irq have been deprecated in favor of config
registers, which are more general. Chips using type_base can switch
over to a single config base register and a standard ->set_irq_type()
callback provided by regmap-irq, which uses the type info associated
with each 'struct regmap_irq' to update type registers in the same
way as the old code did.
Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
---
sound/soc/codecs/wcd9335.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c
index 3cb7a3eab8c7..81678c85ff7b 100644
--- a/sound/soc/codecs/wcd9335.c
+++ b/sound/soc/codecs/wcd9335.c
@@ -5031,16 +5031,22 @@ static const struct regmap_irq wcd9335_codec_irqs[] = {
},
};
+static const unsigned int wcd9335_config_regs[] = {
+ WCD9335_INTR_LEVEL0,
+};
+
static const struct regmap_irq_chip wcd9335_regmap_irq1_chip = {
.name = "wcd9335_pin1_irq",
.status_base = WCD9335_INTR_PIN1_STATUS0,
.mask_base = WCD9335_INTR_PIN1_MASK0,
.ack_base = WCD9335_INTR_PIN1_CLEAR0,
- .type_base = WCD9335_INTR_LEVEL0,
- .num_type_reg = 4,
.num_regs = 4,
.irqs = wcd9335_codec_irqs,
.num_irqs = ARRAY_SIZE(wcd9335_codec_irqs),
+ .config_base = wcd9335_config_regs,
+ .num_config_bases = ARRAY_SIZE(wcd9335_config_regs),
+ .num_config_regs = 4,
+ .set_type_config = regmap_irq_set_type_config_simple,
};
static int wcd9335_parse_dt(struct wcd9335_codec *wcd)
--
2.35.1
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH -next 2/2] sound: soc: codecs: wcd938x: Remove spurious type_base from irq chip
2022-07-21 10:25 [PATCH -next 0/2] ASoC: Cleanup deprecated regmap-irq functionality Aidan MacDonald
2022-07-21 10:25 ` [PATCH -next 1/2] sound: soc: codecs: wcd9335: Convert irq chip to config regs Aidan MacDonald
@ 2022-07-21 10:25 ` Aidan MacDonald
2022-07-21 11:22 ` [PATCH -next 0/2] ASoC: Cleanup deprecated regmap-irq functionality Mark Brown
2022-08-28 21:03 ` Mark Brown
3 siblings, 0 replies; 5+ messages in thread
From: Aidan MacDonald @ 2022-07-21 10:25 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai, srinivas.kandagatla, bgoswami
Cc: alsa-devel, linux-kernel
There is no reason to set type_base here: the chip doesn't set
num_type_regs and none of the IRQs have type information so it's
not possible for regmap-irq to configure IRQ types.
Type registers are also deprecated in regmap-irq, so any IRQ type
support in the future should be implemented using config registers
instead.
Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
---
sound/soc/codecs/wcd938x.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c
index 781ae569be29..aca06a4026f3 100644
--- a/sound/soc/codecs/wcd938x.c
+++ b/sound/soc/codecs/wcd938x.c
@@ -1298,7 +1298,6 @@ static struct regmap_irq_chip wcd938x_regmap_irq_chip = {
.num_regs = 3,
.status_base = WCD938X_DIGITAL_INTR_STATUS_0,
.mask_base = WCD938X_DIGITAL_INTR_MASK_0,
- .type_base = WCD938X_DIGITAL_INTR_LEVEL_0,
.ack_base = WCD938X_DIGITAL_INTR_CLEAR_0,
.use_ack = 1,
.runtime_pm = true,
--
2.35.1
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH -next 0/2] ASoC: Cleanup deprecated regmap-irq functionality
2022-07-21 10:25 [PATCH -next 0/2] ASoC: Cleanup deprecated regmap-irq functionality Aidan MacDonald
2022-07-21 10:25 ` [PATCH -next 1/2] sound: soc: codecs: wcd9335: Convert irq chip to config regs Aidan MacDonald
2022-07-21 10:25 ` [PATCH -next 2/2] sound: soc: codecs: wcd938x: Remove spurious type_base from irq chip Aidan MacDonald
@ 2022-07-21 11:22 ` Mark Brown
2022-08-28 21:03 ` Mark Brown
3 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2022-07-21 11:22 UTC (permalink / raw)
To: Aidan MacDonald
Cc: lgirdwood, perex, tiwai, srinivas.kandagatla, bgoswami,
alsa-devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 854 bytes --]
On Thu, Jul 21, 2022 at 11:25:56AM +0100, Aidan MacDonald wrote:
> Update two ASoC codec drivers to remove uses of regmap-irq type
> registers, which have recently been deprecated by the "regmap-irq
> cleanups and refactoring" series in linux-next.
>
> Link: https://lore.kernel.org/lkml/20220623211420.918875-1-aidanmacdonald.0x0@gmail.com/
>
> Aidan MacDonald (2):
> sound: soc: codecs: wcd9335: Convert irq chip to config regs
> sound: soc: codecs: wcd938x: Remove spurious type_base from irq chip
Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH -next 0/2] ASoC: Cleanup deprecated regmap-irq functionality
2022-07-21 10:25 [PATCH -next 0/2] ASoC: Cleanup deprecated regmap-irq functionality Aidan MacDonald
` (2 preceding siblings ...)
2022-07-21 11:22 ` [PATCH -next 0/2] ASoC: Cleanup deprecated regmap-irq functionality Mark Brown
@ 2022-08-28 21:03 ` Mark Brown
3 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2022-08-28 21:03 UTC (permalink / raw)
To: perex, lgirdwood, bgoswami, tiwai, aidanmacdonald.0x0,
srinivas.kandagatla
Cc: linux-kernel, alsa-devel
On Thu, 21 Jul 2022 11:25:56 +0100, Aidan MacDonald wrote:
> Update two ASoC codec drivers to remove uses of regmap-irq type
> registers, which have recently been deprecated by the "regmap-irq
> cleanups and refactoring" series in linux-next.
>
> Link: https://lore.kernel.org/lkml/20220623211420.918875-1-aidanmacdonald.0x0@gmail.com/
>
> Aidan MacDonald (2):
> sound: soc: codecs: wcd9335: Convert irq chip to config regs
> sound: soc: codecs: wcd938x: Remove spurious type_base from irq chip
>
> [...]
Applied to
broonie/sound.git for-next
Thanks!
[1/2] sound: soc: codecs: wcd9335: Convert irq chip to config regs
commit: 255a03bb1bb3b10d1c1ca785c596db84723f59d7
[2/2] sound: soc: codecs: wcd938x: Remove spurious type_base from irq chip
commit: de3287f177a5666409978a1a0331a33e2842d43b
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 5+ messages in thread