net: txgbe: use irq_domain for interrupt controller
authorJiawen Wu <jiawenwu@trustnetic.com>
Thu, 25 Jan 2024 06:22:13 +0000 (14:22 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Jan 2024 14:31:55 +0000 (14:31 +0000)
commitaefd013624a10f39b0bfaee8432a235128705380
tree1944f6508a496e54fdbefa5738ce61e7431470a8
parent63aabc3ef1961a5eb3049d02a323b3b7fabb9a23
net: txgbe: use irq_domain for interrupt controller

In the current interrupt controller, the MAC interrupt acts as the
parent interrupt in the GPIO IRQ chip. But when the number of Rx/Tx
ring changes, the PCI IRQ vector needs to be reallocated. Then this
interrupt controller would be corrupted. So use irq_domain structure
to avoid the above problem.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/wangxun/libwx/wx_hw.c
drivers/net/ethernet/wangxun/libwx/wx_lib.c
drivers/net/ethernet/wangxun/libwx/wx_type.h
drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c
drivers/net/ethernet/wangxun/txgbe/txgbe_irq.h
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c
drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c
drivers/net/ethernet/wangxun/txgbe/txgbe_phy.h
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h