mdss: mdp: Set completion if backlight level is zero
During rapid suspend/resume usecases assertive display is being turned on with backlight level zero. When on command is received with backlight level zero driver bails out with out turning on AD and doesn't signal the client that worker queue has stopped processing which results in a timeout for on command. Change will ensure that client is signalled if driver is skipping the processing of AD due to backlight being zero. Change-Id: Iaa6229f10ce54f44ec64c175f67ef7584ad4c8b2 Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
This commit is contained in:
parent
f6a76559a2
commit
f29534f106
1 changed files with 1 additions and 0 deletions
|
@ -5392,6 +5392,7 @@ static void pp_ad_calc_worker(struct work_struct *work)
|
||||||
base = mdata->ad_off[ad->calc_hw_num].base;
|
base = mdata->ad_off[ad->calc_hw_num].base;
|
||||||
|
|
||||||
if ((ad->cfg.mode == MDSS_AD_MODE_AUTO_STR) && (ad->last_bl == 0)) {
|
if ((ad->cfg.mode == MDSS_AD_MODE_AUTO_STR) && (ad->last_bl == 0)) {
|
||||||
|
complete(&ad->comp);
|
||||||
mutex_unlock(&ad->lock);
|
mutex_unlock(&ad->lock);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue