In mdfld encoder dpms function, before accessing the registers notify
Power Management module not to power down the display island and once done notify
the module about that access to registers is no longer needed.
Signed-off-by: Mohan Kandra <mohan.b.kandra@intel.com>
Signed-off-by: Arun Kannan <arun.kannan@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
PSB_DEBUG_ENTRY("%s\n", mode == DRM_MODE_DPMS_ON ? "on" : "off");
+ if (!ospm_power_using_hw_begin(OSPM_DISPLAY_ISLAND,
+ true)) {
+ PSB_DEBUG_ENTRY("%s failed to power on\n", __func__);
+ return;
+ }
+
hdmib = REG_READ(hdmi_priv->hdmib_reg) | HDMIB_PIPE_B_SELECT | HDMIB_NULL_PACKET;
hdmi_phy_misc = REG_READ(HDMIPHYMISCCTL);
REG_WRITE(hdmi_priv->hdmib_reg, hdmib | HDMIB_PORT_EN);
}
REG_READ(hdmi_priv->hdmib_reg);
+
+ ospm_power_using_hw_end(OSPM_DISPLAY_ISLAND);
}
static void mdfld_hdmi_save(struct drm_connector *connector)