]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: disable interrupt when ptp init failed
authorYonglong Liu <liuyonglong@huawei.com>
Tue, 22 Jul 2025 12:54:21 +0000 (20:54 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 24 Jul 2025 09:27:21 +0000 (11:27 +0200)
commitcde304655f25d94a996c45b0f9956e7dcc2bc4c0
tree53c7d488927cd37cdb14d980958baa610958a242
parent4555f8f8b6aa46940f55feb6a07704c2935b6d6e
net: hns3: disable interrupt when ptp init failed

When ptp init failed, we'd better disable the interrupt and clear the
flag, to avoid early report interrupt at next probe.

Fixes: 0bf5eb788512 ("net: hns3: add support for PTP")
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250722125423.1270673-3-shaojijie@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c