From: Vitaly Andrianov <vitalya@ti.com>
To: linus.walleij@linaro.org, gnurou@gmail.com,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Vitaly Andrianov <vitalya@ti.com>
Subject: [Resend PATCH] gpio/davinci: add interrupt support for GPIOs 16-31
Date: Wed, 1 Jul 2015 13:41:20 -0400 [thread overview]
Message-ID: <1435772480-928-1-git-send-email-vitalya@ti.com> (raw)
Interrupts for GPIOs 16 through 31 are enabled by bit 1 in the
"binten" register (offset 8). Previous versions of GPIO only
used bit 0, which enables GPIO 0-15 interrupts.
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
---
I posted this patch on 06/18/15 and didn't get any response.
Please, could you review the patch.
drivers/gpio/gpio-davinci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index c5e05c8..c90629f 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -546,6 +546,8 @@ static int davinci_gpio_irq_setup(struct platform_device *pdev)
chips[0].gpio_irq = bank_irq;
chips[0].gpio_unbanked = pdata->gpio_unbanked;
binten = BIT(0);
+ if (pdata->gpio_unbanked > 16)
+ binten |= BIT(1);
/* AINTC handles mask/unmask; GPIO handles triggering */
irq = bank_irq;
--
1.9.1
next reply other threads:[~2015-07-01 17:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-01 17:41 Vitaly Andrianov [this message]
2015-07-02 10:13 ` [Resend PATCH] gpio/davinci: add interrupt support for GPIOs 16-31 Grygorii Strashko
2015-07-02 10:33 ` Sekhar Nori
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=1435772480-928-1-git-send-email-vitalya@ti.com \
--to=vitalya@ti.com \
--cc=gnurou@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@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;
as well as URLs for NNTP newsgroup(s).