]> git.karo-electronics.de Git - linux-beck.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)
commit63f2be5c3b358db031f86eafa9cd450f6558a55b
tree26e710dc8423681051d12f897ebc7a1b025ca4fb
parent3f95ad21855f750fe0428853214754f414b82daf
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