aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/consts.py
diff options
context:
space:
mode:
authorArınç ÜNAL <arinc.unal@arinc9.com>2024-04-18 08:35:31 +0300
committerPaolo Abeni <pabeni@redhat.com>2024-04-23 10:32:40 +0200
commit7c5e37d7ee78d163cb6e04dd00f44731e0d5d8fb (patch)
tree2fb98640fa1c6613d94c26ae1b5e92a029fb4ff9 /tools/testing/selftests/net/lib/py/consts.py
parent868ff5f4944aa90f649de59440abf48bf693680e (diff)
net: dsa: mt7530: simplify core operations
The core_rmw() function calls core_read_mmd_indirect() to read the requested register, and then calls core_write_mmd_indirect() to write the requested value to the register. Because Clause 22 is used to access Clause 45 registers, some operations on core_write_mmd_indirect() are unnecessarily run. Get rid of core_read_mmd_indirect() and core_write_mmd_indirect(), and run only the necessary operations on core_write() and core_rmw(). Reviewed-by: Daniel Golle <daniel@makrotopia.org> Tested-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/consts.py')
0 files changed, 0 insertions, 0 deletions