From: Matthias Brugger <matthias.bgg@gmail.com>
To: hongkun.cao@mediatek.com, robh+dt@kernel.org, pawel.moll@arm.com,
mark.rutland@arm.com, ijc+devicetree@hellion.org.uk,
galak@codeaurora.org, linux@arm.linux.org.uk,
linus.walleij@linaro.org, erin.lo@mediatek.com
Cc: devicetree@vger.kernel.org, srv_heupstream@mediatek.com,
hongzhou.yang@mediatek.com, linux-kernel@vger.kernel.org,
linux-gpio@vger.kernel.org, inux-mediatek@lists.infradead.org,
yingjoe.chen@mediatek.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] pinctrl: mediatek: fix dual-edge code defect
Date: Mon, 23 May 2016 12:39:33 +0200 [thread overview]
Message-ID: <5742DDE5.7050701@gmail.com> (raw)
In-Reply-To: <1463815419-11719-1-git-send-email-hongkun.cao@mediatek.com>
On 21/05/16 09:23, hongkun.cao@mediatek.com wrote:
> From: "hongkun.cao" <hongkun.cao@mediatek.com>
>
> When a dual-edge irq is triggered, an incorrect irq will be reported on
> condition that the external signal is not stable and this incorrect irq
> has been registered.
> Correct the register offset.
>
I'm not sure what you want to say. From what I can see the without this
fix, the the wrong IRQ will be cleared and raised. Is this what you are
addressing?
If so:
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> Signed-off-by: hongkun.cao <hongkun.cao@mediatek.com>
> ---
> drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
> index 2bbe6f7..92ae49f 100644
> --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
> +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
> @@ -1255,9 +1255,10 @@ static void mtk_eint_irq_handler(struct irq_desc *desc)
> const struct mtk_desc_pin *pin;
>
> chained_irq_enter(chip, desc);
> - for (eint_num = 0; eint_num < pctl->devdata->ap_num; eint_num += 32) {
> + for (eint_num = 0;
> + eint_num < pctl->devdata->ap_num;
> + eint_num += 32, reg += 4) {
> status = readl(reg);
> - reg += 4;
> while (status) {
> offset = __ffs(status);
> index = eint_num + offset;
>
WARNING: multiple messages have this Message-ID (diff)
From: matthias.bgg@gmail.com (Matthias Brugger)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] pinctrl: mediatek: fix dual-edge code defect
Date: Mon, 23 May 2016 12:39:33 +0200 [thread overview]
Message-ID: <5742DDE5.7050701@gmail.com> (raw)
In-Reply-To: <1463815419-11719-1-git-send-email-hongkun.cao@mediatek.com>
On 21/05/16 09:23, hongkun.cao at mediatek.com wrote:
> From: "hongkun.cao" <hongkun.cao@mediatek.com>
>
> When a dual-edge irq is triggered, an incorrect irq will be reported on
> condition that the external signal is not stable and this incorrect irq
> has been registered.
> Correct the register offset.
>
I'm not sure what you want to say. From what I can see the without this
fix, the the wrong IRQ will be cleared and raised. Is this what you are
addressing?
If so:
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> Signed-off-by: hongkun.cao <hongkun.cao@mediatek.com>
> ---
> drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
> index 2bbe6f7..92ae49f 100644
> --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
> +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
> @@ -1255,9 +1255,10 @@ static void mtk_eint_irq_handler(struct irq_desc *desc)
> const struct mtk_desc_pin *pin;
>
> chained_irq_enter(chip, desc);
> - for (eint_num = 0; eint_num < pctl->devdata->ap_num; eint_num += 32) {
> + for (eint_num = 0;
> + eint_num < pctl->devdata->ap_num;
> + eint_num += 32, reg += 4) {
> status = readl(reg);
> - reg += 4;
> while (status) {
> offset = __ffs(status);
> index = eint_num + offset;
>
next prev parent reply other threads:[~2016-05-23 10:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-21 7:23 [PATCH] pinctrl: mediatek: fix dual-edge code defect hongkun.cao
2016-05-21 7:23 ` hongkun.cao at mediatek.com
2016-05-23 10:39 ` Matthias Brugger [this message]
2016-05-23 10:39 ` Matthias Brugger
[not found] ` <5742DDE5.7050701-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-05-24 3:10 ` hongkun.cao
2016-05-24 3:10 ` hongkun.cao
2016-05-31 8:13 ` Linus Walleij
2016-05-31 8:13 ` Linus Walleij
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=5742DDE5.7050701@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=erin.lo@mediatek.com \
--cc=galak@codeaurora.org \
--cc=hongkun.cao@mediatek.com \
--cc=hongzhou.yang@mediatek.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=inux-mediatek@lists.infradead.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=srv_heupstream@mediatek.com \
--cc=yingjoe.chen@mediatek.com \
/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.