]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
spi: imx: drop unnecessary read/modify/write
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 24 Feb 2016 08:20:27 +0000 (09:20 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Feb 2016 02:04:14 +0000 (11:04 +0900)
commit2b0fd069ec159d8234c730855eb892104ae2edc9
tree1fe3a398d5cb1209c198c7dcf9ef9a7e4d00ee67
parentc008a800716256300c8a62e781a8897a8d3bce1e
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>
drivers/spi/spi-imx.c