File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
drivers/net/ethernet/hisilicon/hns3/hns3vf Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2315,6 +2315,8 @@ static void hclgevf_state_init(struct hclgevf_dev *hdev)
23152315 clear_bit (HCLGEVF_STATE_RST_FAIL , & hdev -> state );
23162316
23172317 INIT_DELAYED_WORK (& hdev -> service_task , hclgevf_service_task );
2318+ /* timer needs to be initialized before misc irq */
2319+ timer_setup (& hdev -> reset_timer , hclgevf_reset_timer , 0 );
23182320
23192321 mutex_init (& hdev -> mbx_resp .mbx_mutex );
23202322 sema_init (& hdev -> reset_sem , 1 );
@@ -3014,7 +3016,6 @@ static int hclgevf_init_hdev(struct hclgevf_dev *hdev)
30143016 HCLGEVF_DRIVER_NAME );
30153017
30163018 hclgevf_task_schedule (hdev , round_jiffies_relative (HZ ));
3017- timer_setup (& hdev -> reset_timer , hclgevf_reset_timer , 0 );
30183019
30193020 return 0 ;
30203021
You can’t perform that action at this time.
0 commit comments