]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: am65-cpsw-nuss: fix irqs type
authorGrygorii Strashko <grygorii.strashko@ti.com>
Tue, 5 May 2020 16:31:26 +0000 (19:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 00:53:00 +0000 (17:53 -0700)
commit6f5c27f9c6f89226f5b97476797e5abedd61912c
tree2c83bbab3ca9a60c06fe66d09544ccd03d3b0312
parent0735ccc9d9a4ce09154395feb70b804de7cc6ebf
net: ethernet: ti: am65-cpsw-nuss: fix irqs type

The K3 INTA driver, which is source TX/RX IRQs for CPSW NUSS, defines IRQs
triggering type as EDGE by default, but triggering type for CPSW NUSS TX/RX
IRQs has to be LEVEL as the EDGE triggering type may cause unnecessary IRQs
triggering and NAPI scheduling for empty queues. It was discovered with
RT-kernel.

Fix it by explicitly specifying CPSW NUSS TX/RX IRQ type as
IRQF_TRIGGER_HIGH.

Fixes: 93a76530316a ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/am65-cpsw-nuss.c