]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
spi: imx: mx51-ecspi: Reinstate low-speed CONFIGREG delay
authorMarek Vasut <marex@denx.de>
Sat, 3 Jul 2021 02:23:00 +0000 (04:23 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 20 Sep 2021 16:50:00 +0000 (18:50 +0200)
commita652f9aaa6c5346c8db0c2a18efa20f8aa7f1bf4
tree4de379e348e58a80e78c5f7dfad5a99592d042d6
parent768f6736f679a9d532d53b2b13b7f287342b21d9
spi: imx: mx51-ecspi: Reinstate low-speed CONFIGREG delay

BugLink: https://bugs.launchpad.net/bugs/1941798
[ Upstream commit 135cbd378eab336da15de9c84bbb22bf743b38a5 ]

Since 00b80ac935539 ("spi: imx: mx51-ecspi: Move some initialisation to
prepare_message hook."), the MX51_ECSPI_CONFIG write no longer happens
in prepare_transfer hook, but rather in prepare_message hook, however
the MX51_ECSPI_CONFIG delay is still left in prepare_transfer hook and
thus has no effect. This leads to low bus frequency operation problems
described in 6fd8b8503a0dc ("spi: spi-imx: Fix out-of-order CS/SCLK
operation at low speeds") again.

Move the MX51_ECSPI_CONFIG write delay into the prepare_message hook
as well, thus reinstating the low bus frequency fix.

Fixes: 00b80ac935539 ("spi: imx: mx51-ecspi: Move some initialisation to prepare_message hook.")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210703022300.296114-1-marex@denx.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/spi/spi-imx.c