Gfx-Display: [REVERTME] improve the SW workaround 47423
authorGeng Xiujun <xiujun.geng@intel.com>
Mon, 11 Jun 2012 08:24:31 +0000 (16:24 +0800)
committerbuildbot <buildbot@intel.com>
Wed, 20 Jun 2012 19:19:08 +0000 (12:19 -0700)
commit0f74a6863197df72b2b442420b42272816d6375c
tree1cb811fb0d8fcac557cedb1de7da3634f2fe5545
parentf7435ebe45e20163f91e2a0baae5c36cbb79249a
Gfx-Display: [REVERTME] improve the SW workaround 47423

BZ: 41053

The patch move WA 47423 from pci_fixup callback to i2c driver context. Once
there's a device using I2C bus 2, then try to turn on vadd, after finishing
transfer, try to turn off vadd. The turn off vadd operation is put in a delay
work queue, it will be delayed 100ms. once there's no device accessing this i2c
bus, then vadd will be turned off, otherwise the work will be canceled. This can
reduce time consumption if there're constant bus accessing.
another change is after turn on vadd, change wait time from 260ms to 60ms per
CMI panel spec, and before enabling GPIO_BL, wait another 200ms. this can save
200ms if there's i2c accessing before panel on.

Change-Id: I5d9e9e919506da606283e9e26b4cd9ce327bb736
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/52721
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/i2c/busses/i2c-designware-core.c
drivers/pci/pci.h
drivers/pci/quirks.c
drivers/staging/mrst/drv/mdfld_dsi_lvds_bridge.c
drivers/staging/mrst/drv/mdfld_dsi_lvds_bridge.h
drivers/staging/mrst/drv/psb_drv.c
drivers/staging/mrst/drv/psb_powermgmt.c
drivers/staging/mrst/drv/psb_powermgmt.h