summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/ipu-v3/ipu-dc.c
diff options
context:
space:
mode:
authorLiu Ying2016-07-08 11:40:55 +0200
committerPhilipp Zabel2016-07-12 18:23:47 +0200
commit33f14235302f561b1db713c1bd8111a512bf2568 (patch)
tree43e804f6048be60ea3c7afc8c507c400a9619ed1 /drivers/gpu/ipu-v3/ipu-dc.c
parentgpu: ipu-v3: ipu-dmfc: Use static DMFC FIFO allocation mechanism (diff)
downloadkernel-qcow2-linux-33f14235302f561b1db713c1bd8111a512bf2568.tar.gz
kernel-qcow2-linux-33f14235302f561b1db713c1bd8111a512bf2568.tar.xz
kernel-qcow2-linux-33f14235302f561b1db713c1bd8111a512bf2568.zip
drm/imx: atomic phase 1: Use transitional atomic CRTC and plane helpers
Use the drm_plane_helper_update/disable() and drm_helper_crtc_mode_set() transitional atomic helpers. The crtc->mode_set_nofb callback is added so that the primary plane is no longer tied to the CRTC. Check/update logics are separated to make sure crtc->mode_set_nofb and plane->atomic_update are always successful. Also, some necessary logics are tweaked for a smooth transition. Signed-off-by: Liu Ying <gnuiyl@gmail.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/ipu-v3/ipu-dc.c')
-rw-r--r--drivers/gpu/ipu-v3/ipu-dc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-dc.c b/drivers/gpu/ipu-v3/ipu-dc.c
index 2f29780e7c68..cd72dadb0fd7 100644
--- a/drivers/gpu/ipu-v3/ipu-dc.c
+++ b/drivers/gpu/ipu-v3/ipu-dc.c
@@ -178,10 +178,7 @@ int ipu_dc_init_sync(struct ipu_dc *dc, struct ipu_di *di, bool interlaced,
dc->di = ipu_di_get_num(di);
map = ipu_bus_format_to_map(bus_format);
- if (map < 0) {
- dev_dbg(priv->dev, "IPU_DISP: No MAP\n");
- return map;
- }
+ BUG_ON(map < 0);
/*
* In interlaced mode we need more counters to create the asymmetric