spi: fsl_spi: Don't change speed while chipselect is active
Commit c9bfcb315104 ("spi_mpc83xx: much improved driver") made
modifications to the driver to not perform speed changes while
chipselect is active. But those changes where lost with the
convertion to tranfer_one.
Previous implementation was allowing speed changes during
message transfer when cs_change flag was set.
At the time being, core SPI does not provide any feature to change
speed while chipselect is off, so do not allow any speed change during
message transfer, and perform the transfer setup in prepare_message
in order to set correct speed while chipselect is still off.
Reported-by: Herve Codina <email@example.com>
Fixes: 64ca1a034f00 ("spi: fsl_spi: Convert to transfer_one")
Signed-off-by: Christophe Leroy <firstname.lastname@example.org>
Tested-by: Herve Codina <email@example.com>
Reviewed-by: Herve Codina <firstname.lastname@example.org>
Signed-off-by: Mark Brown <email@example.com>
1 file changed