i2c: designware: Add i2c bus locking support
authorDavid Box <david.e.box@linux.intel.com>
Thu, 15 Jan 2015 09:12:16 +0000 (01:12 -0800)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 26 Jan 2015 11:26:16 +0000 (12:26 +0100)
Adds support for acquiring and releasing a hardware bus lock in the i2c
designware core transfer function. This is needed for i2c bus controllers
that are shared with but not controlled by the kernel.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.c
drivers/i2c/busses/i2c-designware-core.h