diff options
author | Narender Ankam <nankam@codeaurora.org> | 2019-09-27 15:31:03 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-03-03 02:32:45 -0800 |
commit | 92bc34c3421a2ec4c3bdd7263cd55330ad74e64a (patch) | |
tree | 09319821faa64779ec86d1b47eb16c090ead91c9 /drivers | |
parent | 08a38cf8cb4a12d8d247a92c36612420c53d9b11 (diff) |
msm: mdss: hdmi: handle wake_irq on suspend/resume
Enable wake_irq on device suspend to receive CEC/HPD
interrupts when device is in deep suspend state.
Disable wake_irq on device resume.
Change-Id: I058b4354c1690e23243107310bf9e3563cf2c16e
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
Signed-off-by: Ramendra Kumar <ramendra@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/fbdev/msm/mdss_hdmi_tx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_tx.c b/drivers/video/fbdev/msm/mdss_hdmi_tx.c index 933e5852271b..86d15f385838 100644 --- a/drivers/video/fbdev/msm/mdss_hdmi_tx.c +++ b/drivers/video/fbdev/msm/mdss_hdmi_tx.c @@ -4097,6 +4097,9 @@ static int hdmi_tx_evt_handle_resume(struct hdmi_tx_ctrl *hdmi_ctrl) goto end; } + if (hdmi_tx_is_cec_wakeup_en(hdmi_ctrl)) + hdmi_ctrl->mdss_util->disable_wake_irq(&hdmi_tx_hw); + end: return rc; } @@ -4155,6 +4158,9 @@ static int hdmi_tx_evt_handle_suspend(struct hdmi_tx_ctrl *hdmi_ctrl) if (!hdmi_ctrl->hpd_state && !hdmi_ctrl->panel_power_on) hdmi_tx_hpd_off(hdmi_ctrl); + if (hdmi_tx_is_cec_wakeup_en(hdmi_ctrl)) + hdmi_ctrl->mdss_util->enable_wake_irq(&hdmi_tx_hw); + hdmi_ctrl->panel_suspend = true; hdmi_tx_cec_device_suspend(hdmi_ctrl); end: |