Skip to contentSkip to conversation

Use functionality of irq_get_trigger_type()

PATCH Applied Vasileios Amoiridis 3 participants 8 messages Sep 4, 2024 – Sep 10, 2024

Subsystems (5)

v2 of 4 Applied 3/3 Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover Use functionality of irq_get_trigger_type()

Changes in v2:
- Split the patches into subsystems.

v1: https://lore.kernel.org/netdev/[email protected]/

Vasileios Amoiridis (3):
net: dsa: realtek: rtl8365mb: Make use of irq_get_trigger_type()
net: dsa: realtek: rtl8366rb: Make use of irq_get_trigger_type()
net: smc91x: Make use of irq_get_trigger_type()

 drivers/net/dsa/realtek/rtl8365mb.c | 2 +-
 drivers/net/dsa/realtek/rtl8366rb.c | 2 +-
 drivers/net/ethernet/smsc/smc91x.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

base-commit: 7808012003004b5b31e24795af33480d5eed20f1

Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/3 net: dsa: realtek: rtl8365mb: Make use of irq_get_trigger_type()

Convert irqd_get_trigger_type(irq_get_irq_data(irq)) cases to the more simple irq_get_trigger_type(irq).

---
 drivers/net/dsa/realtek/rtl8365mb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dsa/realtek/rtl8365mb.c +1 -1
index b9674f68b756..ad7044b295ec 100644
@@ -1740,7 +1740,7 @@ static int rtl8365mb_irq_setup(struct realtek_priv *priv)
 	}
 
 	/* Configure chip interrupt signal polarity */
-	irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq));
+	irq_trig = irq_get_trigger_type(irq);
 	switch (irq_trig) {
 	case IRQF_TRIGGER_RISING:
 	case IRQF_TRIGGER_HIGH:
Signature · 1 line
2.25.1
Reviewed-by on v2 1/3
#2 lore raw

Re: [PATCH net-next v2 1/3] net: dsa: realtek: rtl8365mb: Make use of irq_get_trigger_type()

Quoted 7 lines · Vasileios Amoiridis

Convert irqd_get_trigger_type(irq_get_irq_data(irq)) cases to the more simple irq_get_trigger_type(irq).

---
 drivers/net/dsa/realtek/rtl8365mb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Looks like you missed my review here, you can add it :)

#3 lore raw

Re: [PATCH net-next v2 1/3] net: dsa: realtek: rtl8365mb: Make use of irq_get_trigger_type()

Quoted 4 lines · Alvin Šipraga
Quoted 3 lines · Vasileios Amoiridis

Convert irqd_get_trigger_type(irq_get_irq_data(irq)) cases to the more simple irq_get_trigger_type(irq).

Quoted 8 lines
Quoted 4 lines
---
 drivers/net/dsa/realtek/rtl8365mb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Looks like you missed my review here, you can add it :)

Hi Alvin,

Sorry for missing that, but thank you for reminding :)

#4 lore raw

PATCH v2 2/3 net: dsa: realtek: rtl8366rb: Make use of irq_get_trigger_type()

In reply to Vasileios Amoiridis

Convert irqd_get_trigger_type(irq_get_irq_data(irq)) cases to the more simple irq_get_trigger_type(irq).

---
 drivers/net/dsa/realtek/rtl8366rb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dsa/realtek/rtl8366rb.c +1 -1
index 11243f89c98a..c7a8cd060587 100644
@@ -599,7 +599,7 @@ static int rtl8366rb_setup_cascaded_irq(struct realtek_priv *priv)
 	}
 
 	/* Fetch IRQ edge information from the descriptor */
-	irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq));
+	irq_trig = irq_get_trigger_type(irq);
 	switch (irq_trig) {
 	case IRQF_TRIGGER_RISING:
 	case IRQF_TRIGGER_HIGH:
Signature · 1 line
2.25.1
#5 lore raw

PATCH v2 3/3 net: smc91x: Make use of irq_get_trigger_type()

In reply to Vasileios Amoiridis

Convert irqd_get_trigger_type(irq_get_irq_data(irq)) cases to the more simple irq_get_trigger_type(irq).

---
 drivers/net/ethernet/smsc/smc91x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/smsc/smc91x.c +1 -1
index 907498848028..a5e23e2da90f 100644
@@ -2355,7 +2355,7 @@ static int smc_drv_probe(struct platform_device *pdev)
 	 * the resource supplies a trigger, override the irqflags with
 	 * the trigger flags from the resource.
 	 */
-	irq_resflags = irqd_get_trigger_type(irq_get_irq_data(ndev->irq));
+	irq_resflags = irq_get_trigger_type(ndev->irq);
 	if (irq_flags == -1 || irq_resflags & IRQF_TRIGGER_MASK)
 		irq_flags = irq_resflags & IRQF_TRIGGER_MASK;
 
Signature · 1 line
2.25.1
Reviewed-by on v2 3/3
#6 lore raw

Re: [PATCH net-next v2 3/3] net: smc91x: Make use of irq_get_trigger_type()

Quoted 7 lines · Vasileios Amoiridis

Convert irqd_get_trigger_type(irq_get_irq_data(irq)) cases to the more simple irq_get_trigger_type(irq).

---
 drivers/net/ethernet/smsc/smc91x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 17 lines
drivers/net/ethernet/smsc/smc91x.c +1 -1
index 907498848028..a5e23e2da90f 100644
@@ -2355,7 +2355,7 @@ static int smc_drv_probe(struct platform_device *pdev)
 	 * the resource supplies a trigger, override the irqflags with
 	 * the trigger flags from the resource.
 	 */
-	irq_resflags = irqd_get_trigger_type(irq_get_irq_data(ndev->irq));
+	irq_resflags = irq_get_trigger_type(ndev->irq);
 	if (irq_flags == -1 || irq_resflags & IRQF_TRIGGER_MASK)
 		irq_flags = irq_resflags & IRQF_TRIGGER_MASK;
 
Signature · 1 line
2.25.1
#7 lore raw
In reply to Vasileios Amoiridis
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 11 lines · On Wed, 4 Sep 2024 17:10:15 +0200 you wrote:

Changes in v2:
- Split the patches into subsystems.

v1: https://lore.kernel.org/netdev/[email protected]/

Vasileios Amoiridis (3):
net: dsa: realtek: rtl8365mb: Make use of irq_get_trigger_type()
net: dsa: realtek: rtl8366rb: Make use of irq_get_trigger_type()
net: smc91x: Make use of irq_get_trigger_type()

[...]

Here is the summary with links:
- [net-next,v2,1/3] net: dsa: realtek: rtl8365mb: Make use of irq_get_trigger_type()

    https://git.kernel.org/netdev/net-next/c/517c29247557
  - [net-next,v2,2/3] net: dsa: realtek: rtl8366rb: Make use of irq_get_trigger_type()
    https://git.kernel.org/netdev/net-next/c/36a5faec5658
  - [net-next,v2,3/3] net: smc91x: Make use of irq_get_trigger_type()
    https://git.kernel.org/netdev/net-next/c/f4bbf496f5fd

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html