diff options
author | 2021-04-08 18:33:47 +0800 | |
---|---|---|
committer | 2021-04-09 13:44:01 +0100 | |
commit | 4df2f5e1372e9eec8f9e1b4a3025b9be23487d36 (patch) | |
tree | 626ba4532247f046e6af6f2cfb158512f9e3f696 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | spi: omap-100k: Fix reference leak to master (diff) | |
download | wireguard-linux-4df2f5e1372e9eec8f9e1b4a3025b9be23487d36.tar.xz wireguard-linux-4df2f5e1372e9eec8f9e1b4a3025b9be23487d36.zip |
spi: imx: add a check for speed_hz before calculating the clock
When some drivers use spi to send data, spi_transfer->speed_hz is
not assigned. If spidev->max_speed_hz is not assigned as well, it
will cause an error in configuring the clock.
Add a check for these two values before configuring the clock. An
error will be returned when they are not assigned.
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Link: https://lore.kernel.org/r/20210408103347.244313-2-xiaoning.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions