mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
disp: msm: sde: ensure input handler unregistration in command mode
Input handler is only registered in command mode, so add this change to ensure that the input handler will be only unregistered in command mode. Change-Id: I15f652439339eee45b0ed3c011aa2922151f68ba Signed-off-by: Lei Chen <chenlei@codeaurora.org>
This commit is contained in:
parent
dc7e1224cc
commit
e50cce2dfe
1 changed files with 2 additions and 1 deletions
|
|
@ -3336,7 +3336,8 @@ static void sde_encoder_virt_disable(struct drm_encoder *drm_enc)
|
|||
/* wait for idle */
|
||||
sde_encoder_wait_for_event(drm_enc, MSM_ENC_TX_COMPLETE);
|
||||
|
||||
if (sde_enc->input_handler)
|
||||
if (sde_enc->input_handler &&
|
||||
sde_encoder_check_curr_mode(drm_enc, MSM_DISPLAY_CMD_MODE))
|
||||
input_unregister_handler(sde_enc->input_handler);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue