OSDN Git Service

fsi/gpio: Include command build in locked section
authorJeremy Kerr <jk@ozlabs.org>
Thu, 10 May 2018 09:22:04 +0000 (17:22 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 12 Jun 2018 04:05:04 +0000 (14:05 +1000)
commit8193fb4451ceb8c6585a529556542bdeb375e0d9
tree5c15b8a8c27fe3d6b5e6f9e6daada49221228db7
parentf3ca4834ac335bbf693d424326e4c93523a0c245
fsi/gpio: Include command build in locked section

For implementing relative addressing mode, we'll need to build a command
that is coherent with CFAM state. To do that, include the
build_command_* functions in the locked section of read/write/term.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Tested-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-master-gpio.c