spi: spi-zynqmp-gqspi: Avoid setting baud rate multiple times for same SPI frequency
authorAmit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Tue, 11 Oct 2022 06:20:36 +0000 (11:50 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 19 Oct 2022 13:34:36 +0000 (14:34 +0100)
commit21764a49d32e041e9d118a7b38c14e3e02fae129
treecfbb83a53dd92c242205fca1733c9ac895409773
parent22742b8bbdd9fee1ae30be49c7e7e3becba96fc1
spi: spi-zynqmp-gqspi: Avoid setting baud rate multiple times for same SPI frequency

During every transfer the GQSPI driver configures the baud rate value. But
when there is no change in the SPI clock frequency the driver should avoid
rewriting the same baud rate value to the configuration register. Update
GQSPI driver to rewrite the baud rate value if there is any change in SPI
clock frequency.

Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Link: https://lore.kernel.org/r/20221011062040.12116-4-amit.kumar-mahapatra@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-zynqmp-gqspi.c