From: Naitik Amin <naitik.amin@ametek.com>
To: linux-gpio@vger.kernel.org
Subject: gpio-pca953x.c
Date: Wed, 12 Nov 2014 14:54:18 +0000 (UTC) [thread overview]
Message-ID: <loom.20141112T153203-751@post.gmane.org> (raw)
HI there,
I am trying to use the gpio driver for pca953x with IRQ enabled config. When
the device gets probbed, I gives me an error saying :
"failed to set trigger mode 8"
The probe called,
ret = devm_request_threaded_irq(&client->dev,
client->irq,
NULL,
pca953x_irq_handler,
IRQF_TRIGGER_LOW | IRQF_ONESHOT,
dev_name(&client->dev), chip);
with IRQF_TRIGGER_LOW as a flag
I did some tracing and found out, irq set type, went to gic_set_type in irq-
gic.c ( http://lxr.free-electrons.com/source/drivers/irqchip/irq-gic.c#L187 )
But gic_set_type, only wants to see either IRQF_TRIGGER_HIGH OR
IRQF_TRIGGER_LOW, thats why it returned.
Questions
1. Is it correct that irq set type went to gic_set_type, bcoz pca953x does
provide one of itself.
next reply other threads:[~2014-11-12 15:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 14:54 Naitik Amin [this message]
2014-11-21 15:39 ` gpio-pca953x.c Grygorii Strashko
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=loom.20141112T153203-751@post.gmane.org \
--to=naitik.amin@ametek.com \
--cc=linux-gpio@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 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.