Skip to contentSkip to conversation

pinctrl: exynos: remove duplicate calls in irq handler

PATCH Superseded perr 3 participants 5 messages Aug 15, 2016 – Aug 16, 2016

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

perr

author
#0 lore raw

PATCH 1/1 pinctrl: exynos: remove duplicate calls in irq handler

Because chained_irq_enter() has already called chip->irq_mask() and chip->irq_ack(), also chained_irq_exit() will call chip->irq_unmask(), so it's not necessary to call chip->irq_*() here.

---
 drivers/pinctrl/samsung/pinctrl-exynos.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/pinctrl/samsung/pinctrl-exynos.c +1 -5
index 051b5bf..d32fa2b 100644
@@ -428,14 +428,10 @@ static void exynos_irq_eint0_15(struct irq_desc *desc)
 	int eint_irq;
 
 	chained_irq_enter(chip, desc);
-	chip->irq_mask(&desc->irq_data);
-
-	if (chip->irq_ack)
-		chip->irq_ack(&desc->irq_data);
 
 	eint_irq = irq_linear_revmap(bank->irq_domain, eintd->irq);
 	generic_handle_irq(eint_irq);
-	chip->irq_unmask(&desc->irq_data);
+
 	chained_irq_exit(chip, desc);
 }
 
Signature · 1 line
1.9.3
Acked-by on v1 1/1
#1 lore raw

Hi,

2016-08-15 19:17 GMT+09:00 perr <[email protected]>:

Quoted 10 lines

Because chained_irq_enter() has already called chip->irq_mask() and chip->irq_ack(), also chained_irq_exit() will call chip->irq_unmask(), so it's not necessary to call chip->irq_*() here.

---
 drivers/pinctrl/samsung/pinctrl-exynos.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Indeed, nice finding. Thanks!

Best regards,
Tomasz

Reviewed-by on v1 1/1
#2 lore raw
In reply to perr
Quoted 10 lines · perr

Because chained_irq_enter() has already called chip->irq_mask() and chip->irq_ack(), also chained_irq_exit() will call chip->irq_unmask(), so it's not necessary to call chip->irq_*() here.

---
 drivers/pinctrl/samsung/pinctrl-exynos.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Looks correct so for the patch itself:

However, your name "Perr" confuses me a little bit. For the Signed-off-by statement, as mentioned in Documentation/SubmittingPatches, a real name is required. The name should match the author.

Would you be so kind as to use a full, real name? Unless Perr is your full, real name... then sorry for the trouble.

Best regards,
Krzysztof

author
#3 lore raw

Sent using Zoho Mail

---- On Mon, 15 Aug 2016 09:59:41 -0700 Krzysztof Kozlowski <[email protected]> wrote ----

Quoted 16 lines · perr
Quoted 10 lines

Because chained_irq_enter() has already called chip->irq_mask() and chip->irq_ack(), also chained_irq_exit() will call chip->irq_unmask(), so it's not necessary to call chip->irq_*() here.

---

 drivers/pinctrl/samsung/pinctrl-exynos.c | 6 +----- 
 1 file changed, 1 insertion(+), 5 deletions(-) 

Looks correct so for the patch itself:

Quoted 7 lines

However, your name "Perr" confuses me a little bit. For the Signed-off-by statement, as mentioned in Documentation/SubmittingPatches, a real name is required. The name should match the author.

Would you be so kind as to use a full, real name? Unless Perr is your full, real name... then sorry for the trouble.

Perr Zhang <[email protected]> is OK?
I'm from China. Perr is my first name in English.

Quoted 5 lines

Best regards,
Krzysztof

#4 lore raw
Quoted 22 lines · perr perr

---- On Mon, 15 Aug 2016 09:59:41 -0700 Krzysztof Kozlowski <[email protected]> wrote ----

Quoted 21 lines · perr
Quoted 10 lines

Because chained_irq_enter() has already called chip->irq_mask() and chip->irq_ack(), also chained_irq_exit() will call chip->irq_unmask(), so it's not necessary to call chip->irq_*() here.

---

 drivers/pinctrl/samsung/pinctrl-exynos.c | 6 +----- 
 1 file changed, 1 insertion(+), 5 deletions(-) 

Looks correct so for the patch itself:

However, your name "Perr" confuses me a little bit. For the Signed-off-by statement, as mentioned in Documentation/SubmittingPatches, a real name is required. The name should match the author.

Quoted 4 lines
Quoted 2 lines

Would you be so kind as to use a full, real name? Unless Perr is your full, real name... then sorry for the trouble.

Perr Zhang <[email protected]> is OK?
I'm from China. Perr is my first name in English.

Yes, seems fine. Could you resend with updated name?

Best regards,
Krzysztof