From: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
To: linux-kernel@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] USB/ISP1760: Add support for the generic platfrom device centralized driver model (v2)
Date: Mon, 24 Nov 2008 16:44:09 +0100 [thread overview]
Message-ID: <lyfxlhyvqu.fsf@ensc-virt.intern.sigma-chemnitz.de> (raw)
In-Reply-To: <1227000093-19034-1-git-send-email-cooloney@kernel.org>
Bryan Wu <cooloney@kernel.org>
writes:
> - isp1760 interrupt is default setup TRIGGER_LOW
> ...
> + irq = platform_get_irq(pdev, 0);
> ...
> + hcd = isp1760_register(addr->start, resource_size(addr), irq,
> + IRQF_DISABLED | IRQF_SHARED | IRQF_TRIGGER_LOW,
> + &pdev->dev, dev_name(&pdev->dev),
> + devflags);
TRIGGER_LOW default is bad on e.g. XScale platforms which have
edge triggered interrupts. It would be better to use the resource
flags for interrupt configuration. E.g.
----
struct resource *irq_res;
unsigned long flags;
irq_res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
flags = ((irq_res->flags & IRQF_TRIGGER_MASK) |
((irq_res->flags & IORESOURCE_IRQ_SHAREABLE) ?
IRQF_SHARED : 0));
if ((irq_res->flags & (IORESOURCE_IRQ_HIGHEDGE|IORESOURCE_IRQ_LOWEDGE)))
dev_flags |= ISP1760_FLAG_INTR_EDGE_TRIG;
hcd = isp1760_register(addr->start, resource_size(addr), irq,
IRQF_DISABLED | flags,
&pdev->dev, dev_name(&pdev->dev),
devflags);
----
Enrico
prev parent reply other threads:[~2008-11-24 16:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-18 9:21 Bryan Wu
2008-11-18 10:52 ` Sebastian Andrzej Siewior
2008-11-24 15:44 ` Enrico Scholz [this message]
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=lyfxlhyvqu.fsf@ensc-virt.intern.sigma-chemnitz.de \
--to=enrico.scholz@sigma-chemnitz.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®