summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2026-08-04 04:10:26 +0100
committerJakub Kicinski <kuba@kernel.org>2026-08-07 16:38:46 -0700
commit5cc65c01cdc577621d1320f4aa03a1382c5a4a45 (patch)
tree5fb85e468eca5bc5733dbd8bfd20cf8be67136c1 /tools/perf/scripts/python/task-analyzer.py
parent0023e4c6171dc71ec6d0ee4cab45e67d5f5e2ea4 (diff)
net: pcs: mtk-lynxi: check regmap reads in mtk_pcs_lynxi_get_state()
mtk_pcs_lynxi_get_state() ignores regmap_read()'s return value; a failed read leaves bm and adv holding uninitialized stack values which are then decoded into the reported link state. The regmaps backing the MT7531 SGMII PCS instances sit on an MDIO bus where reads can fail. Check both reads and report the link as down on error; phylink presets state->link before the callback, so a bare return would leave a failed read reported as link-up. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/fce70657fc03bbaf60a04c0fbf2f418531135c4f.1785811140.git.daniel@makrotopia.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions