
22 Jan
2018
22 Jan
'18
7:01 a.m.
On Thu, Jan 18, 2018 at 1:45 PM, Simon Goldschmidt sgoldschmidt@de.pepperl-fuchs.com wrote:
When the device tree is missing a correct spi slave description below the bus, 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, as is done in 'dm_spi_claim_bus'.
Better go-with default baudrate if speed == 0 this what usually does in remaining drivers.