i2c: fsi: Add I2C master locking
authorEddie James <eajames@linux.vnet.ibm.com>
Tue, 17 Jul 2018 15:31:04 +0000 (10:31 -0500)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 20 Jul 2018 22:07:09 +0000 (00:07 +0200)
commitf4cdc319cff88eb83564a5466c15af8128dd8284
treeee489452736ba045c38da354338f1b632ba34096
parent504b82773c074e88423e17b9a069ac9a07df02d6
i2c: fsi: Add I2C master locking

Since there are many ports per master, each with it's own adapter and
chardev, we need some locking to prevent transfers from changing the
master state while other transfers are in progress.

Signed-off-by: Eddie James <eajames@linux.vnet.ibm.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Tested-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-fsi.c