Clark Wang 4df2f5e137
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>
2021-04-09 13:44:01 +01:00
..
2021-03-10 12:46:53 +00:00
2020-10-08 23:00:06 +01:00
2020-07-17 16:38:47 +01:00
2021-02-22 14:34:00 -08:00
2020-10-24 10:33:08 -07:00
2021-01-25 12:53:48 +00:00