]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2025 08:51:25 +0000 (09:51 +0100)
commitd856feebdeab528ddaa143eb1ed75589cdee4241
tree794cab8094600c3a950976ae5f3e29842c66d983
parent38b56afe41da7e17d08a56c47936c11ed2d20fd6
net: hns3: disable interrupt when ptp init failed

[ Upstream commit cde304655f25d94a996c45b0f9956e7dcc2bc4c0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c