提交 e543ae89 编写于 作者: M Mike Frysinger 提交者: Greg Kroah-Hartman

UIO: uio_pdrv_genirq: allow custom irq_flags

I can't think of a reason why the driver prevents people from setting any
custom bits in their platform device, but I can think of some reasons for
allowing custom flags.  Like setting the IRQF_TRIGGER_... bits.
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
Signed-off-by: NHans J. Koch <hjk@linutronix.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 7898aa5c
...@@ -81,7 +81,8 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev) ...@@ -81,7 +81,8 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
goto bad0; goto bad0;
} }
if (uioinfo->handler || uioinfo->irqcontrol || uioinfo->irq_flags) { if (uioinfo->handler || uioinfo->irqcontrol ||
uioinfo->irq_flags & IRQF_SHARED) {
dev_err(&pdev->dev, "interrupt configuration error\n"); dev_err(&pdev->dev, "interrupt configuration error\n");
goto bad0; goto bad0;
} }
...@@ -132,7 +133,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev) ...@@ -132,7 +133,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
* Interrupt sharing is not supported. * Interrupt sharing is not supported.
*/ */
uioinfo->irq_flags = IRQF_DISABLED; uioinfo->irq_flags |= IRQF_DISABLED;
uioinfo->handler = uio_pdrv_genirq_handler; uioinfo->handler = uio_pdrv_genirq_handler;
uioinfo->irqcontrol = uio_pdrv_genirq_irqcontrol; uioinfo->irqcontrol = uio_pdrv_genirq_irqcontrol;
uioinfo->priv = priv; uioinfo->priv = priv;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册