mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
net: wangxun: Fix vector length of interrupt cause
There is 64-bit interrupt cause register for txgbe. Fix to clear upper
32 bits.
Fixes: 3f70318611
("net: libwx: Add irq flow functions")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20230322103632.132011-1-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
608f1b1366
commit
59513714f6
3 changed files with 4 additions and 3 deletions
|
@ -222,7 +222,7 @@
|
|||
#define WX_PX_INTA 0x110
|
||||
#define WX_PX_GPIE 0x118
|
||||
#define WX_PX_GPIE_MODEL BIT(0)
|
||||
#define WX_PX_IC 0x120
|
||||
#define WX_PX_IC(_i) (0x120 + (_i) * 4)
|
||||
#define WX_PX_IMS(_i) (0x140 + (_i) * 4)
|
||||
#define WX_PX_IMC(_i) (0x150 + (_i) * 4)
|
||||
#define WX_PX_ISB_ADDR_L 0x160
|
||||
|
|
|
@ -352,7 +352,7 @@ static void ngbe_up(struct wx *wx)
|
|||
netif_tx_start_all_queues(wx->netdev);
|
||||
|
||||
/* clear any pending interrupts, may auto mask */
|
||||
rd32(wx, WX_PX_IC);
|
||||
rd32(wx, WX_PX_IC(0));
|
||||
rd32(wx, WX_PX_MISC_IC);
|
||||
ngbe_irq_enable(wx, true);
|
||||
if (wx->gpio_ctrl)
|
||||
|
|
|
@ -229,7 +229,8 @@ static void txgbe_up_complete(struct wx *wx)
|
|||
wx_napi_enable_all(wx);
|
||||
|
||||
/* clear any pending interrupts, may auto mask */
|
||||
rd32(wx, WX_PX_IC);
|
||||
rd32(wx, WX_PX_IC(0));
|
||||
rd32(wx, WX_PX_IC(1));
|
||||
rd32(wx, WX_PX_MISC_IC);
|
||||
txgbe_irq_enable(wx, true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue