summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorbui duc phuc <phucduc.bui@gmail.com>2026-08-26 17:34:28 +0700
committerJakub Kicinski <kuba@kernel.org>2026-08-27 12:41:14 -0700
commitdd890ae29299636fb037276fc1b5238698d08b03 (patch)
tree0d4ff2c5b9f03e0551b74aa811a6ac5db5fc0262 /tools/perf/scripts/python
parent23c53269f2baaedf2d92784290cb9ef6db2a3bce (diff)
downloadlinux-dd890ae29299636fb037276fc1b5238698d08b03.tar.gz
linux-dd890ae29299636fb037276fc1b5238698d08b03.zip
net: fec: only stop PTP if it was initialized
fec_ptp_init() is only called when fep->bufdesc_ex is available. However, fec_probe() unconditionally calls fec_ptp_stop() on the failed_init path, and fec_drv_remove() unconditionally calls fec_ptp_stop() during device removal. Check fep->bufdesc_ex before calling fec_ptp_stop() in both paths to avoid stopping PTP when it was not initialized. Fixes: 32cba57ba74b ("net: fec: introduce fec_ptp_stop and use in probe fail path") Reviewed-by: Wei Fang <wei.fang@nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Link: https://patch.msgid.link/20260826103428.32807-1-phucduc.bui@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions