]> git.baikalelectronics.ru Git - kernel.git/commit
spi: rockchip: use atomic_t state
authorEmil Renner Berthing <kernel@esmil.dk>
Wed, 31 Oct 2018 10:57:01 +0000 (11:57 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Nov 2018 11:42:02 +0000 (11:42 +0000)
commit83a71964c2c58cad6e076dbf32a3ba7e86b2e885
tree90364e85647616caf6d11228f810587475b65c55
parent8e2dcd448181d8ad6f4cd9ca9a3b143456367186
spi: rockchip: use atomic_t state

The state field is currently only used to make sure
only the last of the tx and rx dma callbacks issue
an spi_finalize_current_transfer.
Rather than using a spinlock we can get away
with just turning the state field into an atomic_t.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c