commit | b649c79b27f9b499b90fd30a76bbea0037a28f5d | [log] [tgz] |
---|---|---|
author | Dave Sparks <davidsparks@google.com> | Wed Apr 09 15:03:05 2014 -0700 |
committer | Dave Sparks <davidsparks@google.com> | Wed Apr 09 22:08:59 2014 +0000 |
tree | d89265a6ac17cea70988fd7441f4c2ee15398687 | |
parent | f3a1f4f7076ed24208cc46c8852204f809dc8e7e [diff] |
Horrible hack to fix I2C power management bug If an IRQ occurs while we are trying to go into suspend, the I2C driver can end up shutting down in the middle of an I2C transaction. This hack bumps the usage_count of the I2C driver to prevent it from going into suspend while we're trying to read data from the MCU. Also adds a bit of debug output if a timeout ever occurs. Change-Id: Ibb2bf27a88a0822e4b248746b10a4d47138b662b