public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
* [PATCH 1/5] ASoC: wm8996: Pass the IRQF_ONESHOT flag
@ 2015-05-12  4:22 Fabio Estevam
  2015-05-12  4:22 ` [PATCH 2/5] ASoC: wm5100: " Fabio Estevam
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Fabio Estevam @ 2015-05-12  4:22 UTC (permalink / raw)
  To: broonie; +Cc: Fabio Estevam, Julia.Lawall, alsa-devel

From: Fabio Estevam <fabio.estevam@freescale.com>

Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject
bogus threaded irq requests") threaded IRQs without a primary handler
need to be requested with IRQF_ONESHOT, otherwise the request will fail.

So pass the IRQF_ONESHOT flag in this case.

The semantic patch that makes this change is available
in scripts/coccinelle/misc/irqf_oneshot.cocci.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 sound/soc/codecs/wm8996.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c
index 3dce507..232f234 100644
--- a/sound/soc/codecs/wm8996.c
+++ b/sound/soc/codecs/wm8996.c
@@ -2644,10 +2644,12 @@ static int wm8996_probe(struct snd_soc_codec *codec)
 		if (irq_flags & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING))
 			ret = request_threaded_irq(i2c->irq, NULL,
 						   wm8996_edge_irq,
-						   irq_flags, "wm8996", codec);
+						   irq_flags | IRQF_ONESHOT,
+						   "wm8996", codec);
 		else
 			ret = request_threaded_irq(i2c->irq, NULL, wm8996_irq,
-						   irq_flags, "wm8996", codec);
+						   irq_flags | IRQF_ONESHOT,
+						   "wm8996", codec);
 
 		if (ret == 0) {
 			/* Unmask the interrupt */
-- 
1.9.1

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

end of thread, other threads:[~2015-05-12 18:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-12  4:22 [PATCH 1/5] ASoC: wm8996: Pass the IRQF_ONESHOT flag Fabio Estevam
2015-05-12  4:22 ` [PATCH 2/5] ASoC: wm5100: " Fabio Estevam
2015-05-12  4:22 ` [PATCH 3/5] ASoC: wm8994: " Fabio Estevam
2015-05-12  4:22 ` [PATCH 4/5] ASoC: twl6040: " Fabio Estevam
2015-05-12 18:47   ` Mark Brown
2015-05-12  4:23 ` [PATCH 5/5] ASoC: max98095: " Fabio Estevam
2015-05-12 18:48 ` [PATCH 1/5] ASoC: wm8996: " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox