[PATCH 3/9] spi: sunxi: check that transfer speed is non-zero

Michal Suchanek hramrach at gmail.com
Thu Aug 20 12:45:07 PDT 2015


On 20 August 2015 at 16:48, Maxime Ripard
<maxime.ripard at free-electrons.com> wrote:
> On Thu, Aug 20, 2015 at 02:19:46PM -0000, Michal Suchanek wrote:
>> When the maximum transfer speed is not set for a SPI slave the value
>> remains 0 and the code in sunxi SPI divides by it. Use an arbitrary
>> speed instead in that case.
>>
>> Signed-off-by: Michal Suchanek <hramrach at gmail.com>
>
> spi->max_speed_hz is set using the spi-max-frequency property, and
> spi->will error out if that property isn't set. What am I missing?
>

Spidev I guess.

You can set the speed to arbitrary value from userspace at any time
using the spidev ioctls.

Thanks

Michal



More information about the linux-arm-kernel mailing list