]> git.ipfire.org Git - thirdparty/linux.git/commit
net: hns3: initialize reset_timer before hclgevf_misc_irq_init()
authorJian Shen <shenjian15@huawei.com>
Mon, 6 Jan 2025 14:36:40 +0000 (22:36 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Jan 2025 18:33:14 +0000 (10:33 -0800)
commit247fd1e33e1cd156aabe444e932d2648d33f1245
tree24e3fc739e52f418d272633fe02af4027e09b9d1
parent98b1e3b27734139c76295754b6c317aa4df6d32e
net: hns3: initialize reset_timer before hclgevf_misc_irq_init()

Currently the misc irq is initialized before reset_timer setup. But
it will access the reset_timer in the irq handler. So initialize
the reset_timer earlier.

Fixes: ff200099d271 ("net: hns3: remove unnecessary work in hclgevf_main")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20250106143642.539698-6-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c