spi: Fall back to master maximum speed if no slave speed specified
authorMark Brown <broonie@kernel.org>
Thu, 20 Aug 2015 18:52:18 +0000 (11:52 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 21 Aug 2015 17:24:04 +0000 (10:24 -0700)
commit7dc9fbc342deb2e2658ebdecb5ffd7ff57945a66
treec80301fb53fda55f58c89eebbce0f37f0096159d
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
spi: Fall back to master maximum speed if no slave speed specified

If a slave appears with no maximum transfer speed specified fall back to
using the maximum for the master instead.  It's questionable if we
should let slaves do this but let's be defensive.

Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c