mbox series

[net-next,v3,0/2] Implement irq_domain for TXGBE

Message ID 20240124024525.26652-1-jiawenwu@trustnetic.com (mailing list archive)
Headers show
Series Implement irq_domain for TXGBE | expand

Message

Jiawen Wu Jan. 24, 2024, 2:45 a.m. UTC
Implement irq_domain for the MAC interrupt and handle the sub-irqs.

v2 -> v3:
- use macro defines instead of magic number

v1 -> v2:
- move interrupt codes to txgbe_irq.c
- add txgbe-link-irq to msic irq domain
- remove functions that are not needed

Jiawen Wu (2):
  net: txgbe: move interrupt codes to a separate file
  net: txgbe: use irq_domain for interrupt controller

 drivers/net/ethernet/wangxun/libwx/wx_hw.c    |   2 -
 drivers/net/ethernet/wangxun/libwx/wx_lib.c   |  20 +-
 drivers/net/ethernet/wangxun/libwx/wx_type.h  |   1 -
 drivers/net/ethernet/wangxun/txgbe/Makefile   |   1 +
 .../net/ethernet/wangxun/txgbe/txgbe_irq.c    | 269 ++++++++++++++++++
 .../net/ethernet/wangxun/txgbe/txgbe_irq.h    |   7 +
 .../net/ethernet/wangxun/txgbe/txgbe_main.c   | 140 +--------
 .../net/ethernet/wangxun/txgbe/txgbe_phy.c    |  59 ++--
 .../net/ethernet/wangxun/txgbe/txgbe_phy.h    |   2 +
 .../net/ethernet/wangxun/txgbe/txgbe_type.h   |  17 ++
 10 files changed, 337 insertions(+), 181 deletions(-)
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_irq.h