Change-Id: I58e9ba73b2fd232e6c1f40946e2e353b90ce5dd7
Signed-off-by: Erik Gilling <konkers@android.com>
void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info,
struct fb_monspecs *specs,
bool (*mode_filter)(struct fb_videomode *mode));
+/* called by display controller on suspend */
+void tegra_fb_suspend(struct tegra_fb_info *tegra_fb);
#else
static inline struct tegra_fb_info *tegra_fb_register(struct nvhost_device *ndev,
struct tegra_dc *dc,
bool (*mode_filter)(struct fb_videomode *mode))
{
}
+void tegra_fb_suspend(struct tegra_fb_info *tegra_fb)
+{
+}
#endif
#endif
dev_info(&ndev->dev, "suspend\n");
mutex_lock(&dc->lock);
- if (dc->enabled)
+ if (dc->enabled) {
+ tegra_fb_suspend(dc->fb);
_tegra_dc_disable(dc);
+ }
mutex_unlock(&dc->lock);
return 0;
case FB_BLANK_POWERDOWN:
dev_dbg(&tegra_fb->ndev->dev, "blank\n");
+ flush_workqueue(tegra_fb->flip_wq);
tegra_dc_disable(tegra_fb->win->dc);
return 0;
}
}
+void tegra_fb_suspend(struct tegra_fb_info *tegra_fb)
+{
+ flush_workqueue(tegra_fb->flip_wq);
+}
+
+
static int tegra_fb_pan_display(struct fb_var_screeninfo *var,
struct fb_info *info)
{