linux-stable/drivers/fsi
Eddie James 11b2118f4d fsi: Aspeed: Add mutex to protect HW access
[ Upstream commit dfd7f2c1c5 ]

There is nothing to prevent multiple commands being executed
simultaneously. Add a mutex to prevent this.

Fixes: 606397d67f ("fsi: Add ast2600 master driver")
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Milton Miller <miltonm@us.ibm.com>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20201120004929.185239-1-joel@jms.id.au
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:46 +01:00
..
cf-fsi-fw.h fsi: cf-fsi-fw: Use the correct style for SPDX License Identifier 2019-06-19 19:35:51 +02:00
fsi-core.c fsi: core: Set slave local bus ownership during init 2020-09-10 12:22:49 +09:30
fsi-master-aspeed.c fsi: Aspeed: Add mutex to protect HW access 2020-12-30 11:53:46 +01:00
fsi-master-ast-cf.c fsi: master: Add boolean parameter to link_enable function 2020-09-10 12:22:47 +09:30
fsi-master-gpio.c fsi: master: Add boolean parameter to link_enable function 2020-09-10 12:22:47 +09:30
fsi-master-hub.c fsi: master: Constify hub_master_ids 2020-09-10 12:22:50 +09:30
fsi-master.h fsi: master: Add boolean parameter to link_enable function 2020-09-10 12:22:47 +09:30
fsi-occ.c fsi: fsi-occ: fix return value check in occ_probe() 2020-09-10 12:22:47 +09:30
fsi-sbefifo.c fsi: sbefifo: Constify sbefifo_ids 2020-09-10 12:22:50 +09:30
fsi-scom.c fsi: scom: Constify scom_ids 2020-09-10 12:22:51 +09:30
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile fsi: Add ast2600 master driver 2019-11-08 11:28:20 +01:00