diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-24 08:20:27 (GMT) |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-26 02:04:14 (GMT) |
commit | 2b0fd069ec159d8234c730855eb892104ae2edc9 (patch) | |
tree | 1fe3a398d5cb1209c198c7dcf9ef9a7e4d00ee67 /ipc/msg.c | |
parent | c008a800716256300c8a62e781a8897a8d3bce1e (diff) | |
download | linux-2b0fd069ec159d8234c730855eb892104ae2edc9.tar.xz |
spi: imx: drop unnecessary read/modify/write
When the MX51_ECSPI_DMA is configured we control every single bit
of the register, so there's no need to read/modify/write it. Instead
just write the value we want to have in the register. Also, drop
unnecessary check if we are actually doing DMA. The values written
to the register have no effect in PIO mode and value written there
during the last DMA transfer is still in the register, so we can
equally well always write a value.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'ipc/msg.c')
0 files changed, 0 insertions, 0 deletions