]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi: dw: fix multiple slaves with different baudrates
authorMatthias Seidel <kernel@mseidel.net>
Sun, 4 Sep 2016 00:04:49 +0000 (02:04 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 6 Sep 2016 10:53:50 +0000 (11:53 +0100)
commit13b10301b858e355613bfc6dc297580bf34d3fb5
treebe671ff360bb3c0f4c88982f6c64ed8a36193692
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
spi: dw: fix multiple slaves with different baudrates

Add current master clock to dws struct and compare it against the
requestedtransfer speed. Update clock divider only if necessary.

Signed-off-by: Matthias Seidel <kernel@mseidel.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw.c
drivers/spi/spi-dw.h