From: "Hans J. Koch" <hjk@linutronix.de>
To: Mike Frysinger <vapier@gentoo.org>
Cc: hjk@linutronix.de, gregkh@suse.de, damm@igel.co.jp,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] UIO: uio_pdrv_genirq: allow custom irq_flags
Date: Wed, 29 Oct 2008 22:28:09 +0100 [thread overview]
Message-ID: <20081029212809.GD2951@local> (raw)
In-Reply-To: <1225301195-21433-1-git-send-email-vapier@gentoo.org>
On Wed, Oct 29, 2008 at 01:26:35PM -0400, Mike Frysinger wrote:
> I can't think of a reason why the driver prevents people from setting any
> custom bits in their platform device,
The reason was to prevent people from adding IRQF_SHARED since that
won't work.
> but I can think of some reasons for
> allowing custom flags. Like setting the IRQF_TRIGGER_... bits.
Sounds OK to me, but then you have to check that IRQF_SHARED is _not_
set in pdev->uioinfo->irq_flags.
Could you send a new patch that does this?
Magnus, any comments?
Thanks,
Hans
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> drivers/uio/uio_pdrv_genirq.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
> index 1f82c83..8695245 100644
> --- a/drivers/uio/uio_pdrv_genirq.c
> +++ b/drivers/uio/uio_pdrv_genirq.c
> @@ -81,7 +81,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
> goto bad0;
> }
>
> - if (uioinfo->handler || uioinfo->irqcontrol || uioinfo->irq_flags) {
> + if (uioinfo->handler || uioinfo->irqcontrol) {
> dev_err(&pdev->dev, "interrupt configuration error\n");
> goto bad0;
> }
> @@ -132,7 +132,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
> * Interrupt sharing is not supported.
> */
>
> - uioinfo->irq_flags = IRQF_DISABLED;
> + uioinfo->irq_flags |= IRQF_DISABLED;
> uioinfo->handler = uio_pdrv_genirq_handler;
> uioinfo->irqcontrol = uio_pdrv_genirq_irqcontrol;
> uioinfo->priv = priv;
> --
> 1.6.0.2
next prev parent reply other threads:[~2008-10-29 21:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-29 17:26 [PATCH] UIO: uio_pdrv_genirq: allow custom irq_flags Mike Frysinger
2008-10-29 21:28 ` Hans J. Koch [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-10-29 22:20 Mike Frysinger
2008-10-29 22:35 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081029212809.GD2951@local \
--to=hjk@linutronix.de \
--cc=damm@igel.co.jp \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=vapier@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.