diff options
author | David Lechner <[email protected]> | 2023-12-04 11:33:30 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-12-06 14:19:32 +0000 |
commit | be9070bcf67057b7b03c5acc1980d3897448ad20 (patch) | |
tree | cf79d7483df1aec525944895da113a058cf78280 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1fc8dc5721bbc7a21cb4cc60c35eb8031942542b (diff) |
spi: axi-spi-engine: fix sleep ticks calculation
This fixes the sleep ticks calculation when generating sleep
instructions in the AXI SPI Engine driver. The previous calculation
was ignoring delays less than one microsecond and missed a microsecond
to second conversion factor.
This fixes the first issue by not rounding to microseconds. Now that
xfer->effective_speed_hz is guaranteed to be set correctly, we can use
that to simplify the calculation. This new calculation replaces the old
incorrect math.
Also add unit suffix to the delay variable for clarity while we are
touching this.
Signed-off-by: David Lechner <[email protected]>
Acked-by: Michael Hennerich <[email protected]>
Acked-by: Nuno Sa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions