spi: imx: mx51-ecspi: Move some initialisation to prepare_message hook.
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 30 Nov 2018 06:47:06 +0000 (07:47 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 11 Dec 2018 11:59:33 +0000 (11:59 +0000)
commit00b80ac9355397455adec24c9ee76f1b0225cd27
tree0fbd92be173db751053573a99213bf97d5b00399
parente697271c4e2987b333148e16a2eb8b5b924fd40a
spi: imx: mx51-ecspi: Move some initialisation to prepare_message hook.

The relevant difference between prepare_message and config is that the
former is run before the CS signal is asserted. So the polarity of the
CLK line must be configured in prepare_message as an edge generated by
config might already result in a latch of the MOSI line.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c