spi: imx: set MX51_ECSPI_CTRL_SMC bit in setup function
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 24 Feb 2016 08:20:32 +0000 (09:20 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Feb 2016 02:04:14 +0000 (11:04 +0900)
commitb03c3884ca8c5ad3e6d14af6c8df0e3650c67482
treea33febb785932c786261936032ed3872d030bd0a
parentd629c2a0051f27cc17ac9dc36bbeef8174b48aae
spi: imx: set MX51_ECSPI_CTRL_SMC bit in setup function

Now that the config function knows whether we are doing DMA or not we
can do the necessary register setup in the config function and no longer
have to do this in the trigger function. With this the trigger function
becomes a no-op for DMA, so instead of testing if we are doing DMA or
not in the trigger function we simply no longer call it in the DMA case.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c