aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorTudor Ambarus <[email protected]>2020-12-16 11:23:21 +0200
committerMark Brown <[email protected]>2020-12-30 13:45:23 +0000
commit6820e812dafb4258bc14692f686eec5bde6fba86 (patch)
tree8c3bc29d125a88570e3cc3b0534e11f6aaee5703 /tools/perf/scripts/python/bin/export-to-postgresql-report
parentede090f5a438e97d0586f64067bbb956e30a2a31 (diff)
spi: Fix the clamping of spi->max_speed_hz
If spi->controller->max_speed_hz is zero, a non-zero spi->max_speed_hz will be overwritten by zero. Make sure spi->controller->max_speed_hz is not zero when clamping spi->max_speed_hz. Put the spi->controller->max_speed_hz non-zero check higher in the if, so that we avoid a superfluous init to zero when both spi->max_speed_hz and spi->controller->max_speed_hz are zero. Fixes: 9326e4f1e5dd ("spi: Limit the spi device max speed to controller's max speed") Reported-by: Geert Uytterhoeven <[email protected]> Suggested-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]> Tested-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions