msm: mdss: allow get_metadata when the panel is in suspend mode
There are scenarios when HAL retrieves information through get_metadata when the panel is in suspend mode. Allow the get_metadata ioctl to go through, even when the panel is in suspend state. CRs-fixed: 873962 Change-Id: I8d8bd14134f73cb3628e016668e766b818b8d89e Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
parent
5760ffaa49
commit
bb01a30200
1 changed files with 4 additions and 4 deletions
|
@ -3792,10 +3792,9 @@ static int mdss_fb_get_metadata(struct msm_fb_data_type *mfd,
|
|||
struct msmfb_metadata *metadata)
|
||||
{
|
||||
struct mdss_data_type *mdata = mfd_to_mdata(mfd);
|
||||
struct mdss_mdp_ctl *ctl = mfd_to_ctl(mfd);
|
||||
struct mdss_mdp_ctl *ctl = NULL;
|
||||
int ret = 0;
|
||||
if (!ctl)
|
||||
return -EPERM;
|
||||
|
||||
switch (metadata->op) {
|
||||
case metadata_op_frame_rate:
|
||||
metadata->data.panel_frame_rate =
|
||||
|
@ -3814,7 +3813,8 @@ static int mdss_fb_get_metadata(struct msm_fb_data_type *mfd,
|
|||
}
|
||||
break;
|
||||
case metadata_op_crc:
|
||||
if (mdss_fb_is_power_off(mfd))
|
||||
ctl = mfd_to_ctl(mfd);
|
||||
if (!ctl || mdss_fb_is_power_off(mfd))
|
||||
return -EPERM;
|
||||
ret = mdss_misr_get(mdata, &metadata->data.misr_request, ctl);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue