linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 0/2] ASoC: Cleanup deprecated regmap-irq functionality
@ 2022-07-21 10:25 Aidan MacDonald
  2022-07-21 10:25 ` [PATCH -next 1/2] sound: soc: codecs: wcd9335: Convert irq chip to config regs Aidan MacDonald
                   ` (3 more replies)
  0 siblings, 4 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

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

 sound/soc/codecs/wcd9335.c | 10 ++++++++--
 sound/soc/codecs/wcd938x.c |  1 -
 2 files changed, 8 insertions(+), 3 deletions(-)


base-commit: 353f7988dd8413c47718f7ca79c030b6fb62cfe5
prerequisite-patch-id: a45db1cac7537769dc10087fc61f977dc150744c
prerequisite-patch-id: cb8aa009c7bb7a6575eb05e3af65342dc8d0efa3
prerequisite-patch-id: 8d32557e53b894d1fb17250d2d0eb3673f068d37
prerequisite-patch-id: 5b293867ef81e3697892ac51b941bb53680a70dc
prerequisite-patch-id: 8138d39a4817e804141bfe8c2ad37d9c55456a40
prerequisite-patch-id: b01216129e887519d441cf556bbc75c397871773
prerequisite-patch-id: b5dcf0c0609113c2d81bc557c1fc95ef23f40811
prerequisite-patch-id: 622ca1c10e851b1889aaa567c1d2a0adf43cca44
prerequisite-patch-id: d28c5187f9bf0e43f27b2f4aa8dcf7fd91842a03
prerequisite-patch-id: d29d54b756be73304f844abeeaf9b46a5c0119d5
prerequisite-patch-id: 5d405790ae89c0831b46a359f86e94bac5a67470
prerequisite-patch-id: c90120e79acbb52ffa148bfedee1df9d35b5eced
prerequisite-patch-id: 2e35247a5cfe5a28565c9272b85fc6835011b032
-- 
2.35.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [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 related	[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 related	[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

end of thread, other threads:[~2022-08-28 21:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH -next 0/2] ASoC: Cleanup deprecated regmap-irq functionality Mark Brown
2022-08-28 21:03 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).