]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: hibmcge: Add interrupt supported in this module
authorJijie Shao <shaojijie@huawei.com>
Tue, 15 Oct 2024 12:35:10 +0000 (20:35 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 21 Oct 2024 09:26:52 +0000 (11:26 +0200)
commit4d089035fa196042461e562d482290559d7c1825
tree550b20fe332597e7bd70fbf15895a183a400088e
parenta239b2b1dee2dce9c48939b122b3ad3ed7b99cbd
net: hibmcge: Add interrupt supported in this module

The driver supports four interrupts: TX interrupt, RX interrupt,
mdio interrupt, and error interrupt.

Actually, the driver does not use the mdio interrupt.
Therefore, the driver does not request the mdio interrupt.

The error interrupt distinguishes different error information
by using different masks. To distinguish different errors,
the statistics count is added for each error.

To ensure the consistency of the code process, masks are added for the
TX interrupt and RX interrupt.

This patch implements interrupt request, and provides a
unified entry for the interrupt handler function. However,
the specific interrupt handler function of each interrupt
is not implemented currently.

Because of pcim_enable_device(), the interrupt vector
is already device managed and does not need to be free actively.

Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hibmcge/hbg_common.h
drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c
drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.h
drivers/net/ethernet/hisilicon/hibmcge/hbg_irq.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hibmcge/hbg_irq.h [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c
drivers/net/ethernet/hisilicon/hibmcge/hbg_reg.h