aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRussell King (Oracle) <[email protected]>2024-10-04 11:21:22 +0100
committerDavid S. Miller <[email protected]>2024-10-09 12:13:11 +0100
commitce8d6081fcf46d951a5e13134f46c6fedf152632 (patch)
treeb72b276d14f75b422c1db6d357eab88091036ffc /tools/perf/scripts/python
parentf6818918106113e04796c4558cbd98d01e04f002 (diff)
net: pcs: xpcs: add _modify() accessors
The xpcs driver does a lot of read-modify-write operations on registers, which leads to long-winded code to read the register, check whether the read was successful, modify the value in some way, and then write it back. We have a mdiodev _modify() accessor that encapsulates this, and does the register modification under the MDIO bus lock ensuring that the modification is atomic with respect to other bus operations. Convert the xpcs driver to use this accessor. Signed-off-by: Russell King (Oracle) <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions