]> 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, 15 Aug 2025 10:04:48 +0000 (12:04 +0200)
commit19e66d227e5ea20f314e2f6df0e00f0ca95f5576
tree408860fdc438e68f2681524f6dfa3eb5ee18bea2
parentf59aec2dfe9bb7392ec8d8e07c426fdc069833ac
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