fsi: Aspeed: Add mutex to protect HW access
authorEddie James <eajames@linux.ibm.com>
Fri, 20 Nov 2020 00:49:29 +0000 (11:19 +1030)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:52:25 +0000 (19:52 +0100)
commitdfd7f2c1c532efaeff6084970bb60ec2f2e44191
treec51de484bd4c7ab9dd776de6203e41828edb6e1c
parentfe34761d9f5febafd189de608eb9f50d78aac107
fsi: Aspeed: Add mutex to protect HW access

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

Fixes: 606397d67f41 ("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>
drivers/fsi/fsi-master-aspeed.c