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

From: Mark Brown
Date: Thu Aug 20 2015 - 14:45:29 EST


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.

You should always be using the transfer speed that is defined per
transfer, the core will ensure that this is always set.

Attachment: signature.asc
Description: Digital signature