I2C: the i2c controller is expected to be enabled when there is a
authorFei Yang <fei.yang@intel.com>
Mon, 7 Nov 2011 22:40:33 +0000 (14:40 -0800)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 21:21:22 +0000 (13:21 -0800)
commit9767412bc65af3c4bc9181d682995d31c9ac312d
treed4084f67d84b615b88289fbdc29d701c9e873204
parent9433e2e14a5c4d3ed6ed7245a15af7902183ff74
I2C: the i2c controller is expected to be enabled when there is a
transfer request. Runtiem resume should only power on and initialize
the device to a known default state. Enabling the device on runtime
resume would trigger a spurious interrupt even when there is no
function driver acutally using the i2c device, thus causing a kernel
panic as dev->msgs == NULL.

Change-Id: I708e0d532aa0cdd7cb5161d8643dd5186d193243
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/23503
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
drivers/i2c/busses/i2c-designware-pcidrv.c