Simon Goldschmidt
12bfb2e05f
dm: spi: prevent setting a speed of 0 Hz
...
When the device tree is missing a correct spi slave description below
the bus (compatible "spi-flash" or spi-max-frequency are missing),
the 'set_speed' callback can be called with 'speed' == 0 Hz.
At least with cadence qspi, this leads to a division by zero.
Prevent this by initializing speed to 100 kHz in this case (same
fallback value as is done in 'dm_spi_claim_bus') and issue a warning
to console.
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2018-11-20 19:14:22 -07:00
..
2018-11-20 12:35:25 -05:00
2018-09-29 11:47:32 -04:00
2018-10-28 09:26:39 -04:00
2018-07-23 14:33:21 -04:00
2018-11-14 09:16:27 -08:00
2018-10-28 09:26:39 -04:00
2018-10-19 14:16:43 -04:00
2018-11-20 12:35:35 -05:00
2018-11-20 19:14:22 -07:00
2018-11-14 09:16:27 -08:00
2018-05-07 09:34:12 -04:00
2018-09-15 03:17:01 +02:00
2018-05-07 09:34:12 -04:00
2018-11-13 18:53:10 +05:30
2018-05-07 09:34:12 -04:00
2018-10-28 09:26:39 -04:00
2018-09-29 11:49:35 -06:00
2018-10-31 01:41:10 +01:00
2018-11-18 16:02:22 +01:00
2018-11-16 16:51:58 -05:00
2018-10-09 04:40:27 -06:00
2018-08-10 10:27:32 -04:00
2018-10-28 09:26:39 -04:00
2018-05-07 09:34:12 -04:00
2018-11-16 16:52:01 -05:00
2018-11-16 08:37:50 -05:00
2018-11-16 13:34:37 -05:00
2018-11-05 10:42:01 -06:00
2018-11-14 09:16:27 -08:00
2018-05-07 09:34:12 -04:00
2018-11-20 19:14:22 -07:00
2018-05-07 09:34:12 -04:00
2018-10-28 09:26:39 -04:00
2018-11-16 16:51:57 -05:00
2018-11-01 10:02:43 -04:00
2018-10-24 21:57:16 +05:30
2018-09-27 10:01:27 -07:00
2018-11-16 16:51:58 -05:00
2018-09-11 08:32:55 -04:00
2018-10-28 09:26:39 -04:00
2018-10-10 13:35:17 -04:00
2018-11-14 09:16:27 -08:00
2018-11-16 16:52:00 -05:00
2018-07-19 16:31:38 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-11-20 19:14:22 -07:00
2018-05-07 09:34:12 -04:00
2018-11-14 09:16:28 -08:00
2018-10-07 11:04:01 -04:00
2018-05-07 09:34:12 -04:00
2018-11-14 09:16:28 -08:00
2018-10-09 04:40:27 -06:00
2018-10-29 13:13:05 -07:00
2018-11-16 08:37:50 -05:00
2018-11-14 09:16:28 -08:00
2018-11-01 10:02:10 -04:00
2018-11-16 16:51:55 -05:00
2018-11-18 16:02:22 +01:00
2018-11-14 09:16:27 -08:00
2018-11-14 09:16:27 -08:00