File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
drivers/net/ethernet/wangxun Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 222
222
#define WX_PX_INTA 0x110
223
223
#define WX_PX_GPIE 0x118
224
224
#define WX_PX_GPIE_MODEL BIT(0)
225
- #define WX_PX_IC 0x120
225
+ #define WX_PX_IC ( _i ) (0x120 + (_i) * 4)
226
226
#define WX_PX_IMS (_i ) (0x140 + (_i) * 4)
227
227
#define WX_PX_IMC (_i ) (0x150 + (_i) * 4)
228
228
#define WX_PX_ISB_ADDR_L 0x160
Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ static void ngbe_up(struct wx *wx)
352
352
netif_tx_start_all_queues (wx -> netdev );
353
353
354
354
/* clear any pending interrupts, may auto mask */
355
- rd32 (wx , WX_PX_IC );
355
+ rd32 (wx , WX_PX_IC ( 0 ) );
356
356
rd32 (wx , WX_PX_MISC_IC );
357
357
ngbe_irq_enable (wx , true);
358
358
if (wx -> gpio_ctrl )
Original file line number Diff line number Diff line change @@ -229,7 +229,8 @@ static void txgbe_up_complete(struct wx *wx)
229
229
wx_napi_enable_all (wx );
230
230
231
231
/* clear any pending interrupts, may auto mask */
232
- rd32 (wx , WX_PX_IC );
232
+ rd32 (wx , WX_PX_IC (0 ));
233
+ rd32 (wx , WX_PX_IC (1 ));
233
234
rd32 (wx , WX_PX_MISC_IC );
234
235
txgbe_irq_enable (wx , true);
235
236
You can’t perform that action at this time.
0 commit comments