]> git.baikalelectronics.ru Git - kernel.git/commit
regmap-irq: set IRQF_ONESHOT flag to ensure IRQ request
authorValentin Rothberg <Valentin.Rothberg@lip6.fr>
Wed, 11 Feb 2015 15:37:57 +0000 (16:37 +0100)
committerMark Brown <broonie@kernel.org>
Sat, 14 Feb 2015 05:26:36 +0000 (14:26 +0900)
commit19cca537936edf5d9749cca8064522afa3641dd9
treef16ca0a536c1a3b2b13fb8346b3a67474437da29
parente716639644c99cea0dd635682be67de26d48dbf6
regmap-irq: set IRQF_ONESHOT flag to ensure IRQ request

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

The %irq_flags flag is used to request the threaded IRQ and is also a
parameter of the caller.  Hence, we cannot be sure that IRQF_ONESHOT is
set.  This change avoids the potentially missing flag by setting
IRQF_ONESHOT when requesting the threaded IRQ.

Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci

Signed-off-by: Valentin Rothberg <Valentin.Rothberg@lip6.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c