aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorDaniel Golle <[email protected]>2022-01-04 12:06:22 +0000
committerDavid S. Miller <[email protected]>2022-01-05 11:22:17 +0000
commiteda80b249df7bbc7b3dd13907343a3e59bfc57fd (patch)
treef9034126dd59b440ce8d123c5db7297748454470 /tools/perf/scripts/python/event_analyzing_sample.py
parentffd32ea6b13c97904cae59bdb13a843d52756578 (diff)
net: ethernet: mtk_eth_soc: fix return values and refactor MDIO ops
Instead of returning -1 (-EPERM) when MDIO bus is stuck busy while writing or 0xffff if it happens while reading, return the appropriate -ETIMEDOUT. Also fix return type to int instead of u32. Refactor functions to use bitfield helpers instead of having various masking and shifting constants in the code, which also results in the register definitions in the header file being more obviously related to what is stated in the MediaTek's Reference Manual. Fixes: 656e705243fd0 ("net-next: mediatek: add support for MT7623 ethernet") Signed-off-by: Daniel Golle <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions