|
|
@@ -70,18 +70,12 @@ static inline struct innolux_panel *to_innolux_panel(struct drm_panel *panel)
|
|
|
static int innolux_panel_disable(struct drm_panel *panel)
|
|
|
{
|
|
|
struct innolux_panel *innolux = to_innolux_panel(panel);
|
|
|
- int err;
|
|
|
|
|
|
if (!innolux->enabled)
|
|
|
return 0;
|
|
|
|
|
|
backlight_disable(innolux->backlight);
|
|
|
|
|
|
- err = mipi_dsi_dcs_set_display_off(innolux->link);
|
|
|
- if (err < 0)
|
|
|
- DRM_DEV_ERROR(panel->dev, "failed to set display off: %d\n",
|
|
|
- err);
|
|
|
-
|
|
|
innolux->enabled = false;
|
|
|
|
|
|
return 0;
|
|
|
@@ -95,6 +89,11 @@ static int innolux_panel_unprepare(struct drm_panel *panel)
|
|
|
if (!innolux->prepared)
|
|
|
return 0;
|
|
|
|
|
|
+ err = mipi_dsi_dcs_set_display_off(innolux->link);
|
|
|
+ if (err < 0)
|
|
|
+ DRM_DEV_ERROR(panel->dev, "failed to set display off: %d\n",
|
|
|
+ err);
|
|
|
+
|
|
|
err = mipi_dsi_dcs_enter_sleep_mode(innolux->link);
|
|
|
if (err < 0) {
|
|
|
DRM_DEV_ERROR(panel->dev, "failed to enter sleep mode: %d\n",
|