If the vfront/vback porches are small are vsync length is small, the
dis_ulc_y is also small. Hence, the DB trigger setting will be
inappropriate and the DB context will not be able to load in time.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
dtg->dis_ulc_x = dis_ulc_x;
dtg->dis_ulc_y = dis_ulc_y;
- dcss_dtg_write(dtg, dis_ulc_y, DCSS_DTG_TC_CTXLD);
+ /*
+ * If the dis_ulc_y is too small, then the context loader will not have
+ * time to load the DB context. This happens with LCD panels which have
+ * small vfront_porch, vback_porch and/or vsync_len.
+ */
+ dcss_dtg_write(dtg, dis_ulc_y < 50 ? 50 : dis_ulc_y, DCSS_DTG_TC_CTXLD);
}
EXPORT_SYMBOL(dcss_dtg_sync_set);