]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fsl-mc: Added serialization to mc_send_command()
authorJ. German Rivera <German.Rivera@freescale.com>
Sat, 17 Oct 2015 20:33:15 +0000 (15:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 03:54:46 +0000 (20:54 -0700)
commitd92c873794535e89d9a6e786c3dfb009265fc118
tree26e710dc8423681051d12f897ebc7a1b025ca4fb
parent94ef9b02866b9ba979c5d5b4b22b7e977db6d111
staging: fsl-mc: Added serialization to mc_send_command()

When the same portal is used to call mc_send_command() from two
different threads or a thread and an interrupt handler, serialization
is required, as the MC only supports one outstanding command per MC
portal. Thus, a new command should not be sent to the MC until the
last command sent has been responded by the MC.

Signed-off-by: J. German Rivera <German.Rivera@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/mc-sys.c
drivers/staging/fsl-mc/include/mc-sys.h