i2c: designware: Disable device on system suspend
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 15 May 2014 14:37:22 +0000 (17:37 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 2 Jun 2014 17:18:38 +0000 (19:18 +0200)
commitf537295a58ddc4460b9857c6e4a6959685447f3b
tree7c7923999856323560c8900a3327ad3845f90060
parent7da62cb1853025a579a8942fc4d7c9dee6afb73e
i2c: designware: Disable device on system suspend

Userspace can initiate system suspend on arbitrary times which means that
device drivers must make sure that their device gets quiesced before system
suspend is entered. Therefore disable the I2C host controller in the driver
system suspend hook.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-platdrv.c