GFX-DISPLAY: Add mutex in __dpi_panel_power_off to pretect pipe disabled after DRM_WA...
authorLi Zhuangzhi <zhuangzhi.li@intel.com>
Mon, 28 May 2012 13:39:07 +0000 (21:39 +0800)
committerbuildbot <buildbot@intel.com>
Wed, 6 Jun 2012 08:16:12 +0000 (01:16 -0700)
commit7945a16e5966acc85512da296efee2e66741a077
treebe405ce0ea44c5655bb0d1e53b8e8dce201e6b96
parent5e2b6fe98834853b5952ae685d6a4d496c37f0ec
GFX-DISPLAY: Add mutex in __dpi_panel_power_off to pretect pipe disabled after DRM_WAIT_ON signaled

BZ: 37139

Issue:
On Lexington phones, press power button when playing video, sometimes sounds of video will still
playing for a while.

Solution:
Add mutex in __dpi_panel_power_off to pretect pipe disabled after DRM_WAIT_ON signaled by last
vblank event when playing video, otherwise the last vblank event will lost when pipe disabled
before vblank interrupt coming sometimes, it will cause the media pausing action blocking for 3s.

Change-Id: I2e55e3220619bdacd9cca83c67fbaac6be1dbaa6
Signed-off-by: Li Zhuangzhi <zhuangzhi.li@intel.com>
Reviewed-on: http://android.intel.com:8080/51376
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/staging/mrst/drv/mdfld_dsi_dpi.c