net: qede: fix PTP initialization on recovery
[ Upstream commit 1c85f394 ] Currently PTP cyclecounter and timecounter are initialized only on the first probing and are cleaned up during removal. This means that PTP becomes non-functional after device recovery. Fix this by unconditional PTP initialization on probing and clearing Tx pending bit on exiting. Fixes: ccc67ef5 ("qede: Error recovery process") Signed-off-by:Alexander Lobakin <alobakin@marvell.com> Signed-off-by:
Igor Russkikh <irusskikh@marvell.com> Signed-off-by:
Michal Kalderon <michal.kalderon@marvell.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Showing
- drivers/net/ethernet/qlogic/qede/qede_main.c 1 addition, 1 deletiondrivers/net/ethernet/qlogic/qede/qede_main.c
- drivers/net/ethernet/qlogic/qede/qede_ptp.c 13 additions, 18 deletionsdrivers/net/ethernet/qlogic/qede/qede_ptp.c
- drivers/net/ethernet/qlogic/qede/qede_ptp.h 1 addition, 1 deletiondrivers/net/ethernet/qlogic/qede/qede_ptp.h
Please register or sign in to comment