diff options
author | Kevin Groeneveld <[email protected]> | 2023-03-18 18:21:32 -0400 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-04-04 12:46:54 +0100 |
commit | 87c614175bbf28d3fd076dc2d166bac759e41427 (patch) | |
tree | 65e89e9fff3b126f5417330d93778a6c0fcbadb0 /tools/perf/scripts/python/check-perf-trace.py | |
parent | c2912d42e86e494935722669e4d9eade69649072 (diff) |
spi: spi-imx: fix MX51_ECSPI_* macros when cs > 3
When using gpio based chip select the cs value can go outside the range
0 – 3. The various MX51_ECSPI_* macros did not take this into consideration
resulting in possible corruption of the configuration.
For example for any cs value over 3 the SCLKPHA bits would not be set and
other values in the register possibly corrupted.
One way to fix this is to just mask the cs bits to 2 bits. This still
allows all 4 native chip selects to work as well as gpio chip selects
(which can use any of the 4 chip select configurations).
Signed-off-by: Kevin Groeneveld <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions