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)
commitc0601d285efe063def984f91b04de2d227f89526
treef405abc5b7a41d51893e3e59821781075b1571e6
parent72f0271576eeef40c81c2949e0a8abeaef9a7690
i2c: designware: Add i2c bus locking support

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