aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/microchip-spi.c
diff options
context:
space:
mode:
authorChristophe Leroy <[email protected]>2022-12-14 14:41:33 +0100
committerMark Brown <[email protected]>2022-12-14 14:24:51 +0000
commit3b553e0041a65e499fa4e25ee146f01f4ec4e617 (patch)
treef88dfc4c112cb92cc27269dc4ee38226fdf622fd /drivers/fpga/microchip-spi.c
parent3cf241c3d56ff19f5192cb42a025bc6582b6e8fa (diff)
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 protected]> Fixes: 64ca1a034f00 ("spi: fsl_spi: Convert to transfer_one") Cc: [email protected] Signed-off-by: Christophe Leroy <[email protected]> Tested-by: Herve Codina <[email protected]> Reviewed-by: Herve Codina <[email protected]> Link: https://lore.kernel.org/r/8aab84c51aa330cf91f4b43782a1c483e150a4e3.1671025244.git.christophe.leroy@csgroup.eu Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions