diff options
| author | Vladimir Oltean <[email protected]> | 2023-04-12 15:47:30 +0300 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-04-13 21:56:06 -0700 |
| commit | 9ecd05794b8da1f6cfca4c3721a3b0fed2e21a82 (patch) | |
| tree | 510d1b28bf6991346b3d0ee53db239124c7a6c66 /tools/perf/scripts/python/task-analyzer.py | |
| parent | c2865b1122595e69e7df52d01f7f02338b8babca (diff) | |
net: mscc: ocelot: strengthen type of "u32 reg" in I/O accessors
The "u32 reg" argument that is passed to these functions is not a plain
address, but rather a driver-specific encoding of another enum
ocelot_target target in the upper bits, and an index into the
u32 ocelot->map[target][] array in the lower bits. That encoded value
takes the type "enum ocelot_reg" and is what is passed to these I/O
functions, so let's actually use that to prevent type confusion.
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions