linux/drivers/gpu/drm/sun4i
Maxime Ripard 9f4ebf670d
drm/sun4i: backend: Allow a NULL plane pointer to retrieve the format
The function converting the DRM format to its equivalent in the backend
registers was assuming that we were having a plane.

However, we might want to use that function when setting up a plane using
the frontend, in which case we will not have a plane associated to the
backend's layer. Yet, we still need to setup the format to the one output
by the frontend.

Test for NULL plane pointers before referencing them, so that we can work
around it.

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/bfbe4c2e8525a7542526b648d59a8f3546e905f1.1516613040.git-series.maxime.ripard@free-electrons.com
2018-01-22 15:14:49 +01:00
..
Kconfig drm/sun4i: cec: Enable back CEC-pin framework 2017-09-22 08:42:17 +02:00
Makefile drm/sun4i: Add LVDS support 2018-01-04 20:37:17 +01:00
sun4i_backend.c drm/sun4i: backend: Allow a NULL plane pointer to retrieve the format 2018-01-22 15:14:49 +01:00
sun4i_backend.h drm/sun4i: backend: Support output muxing 2017-10-17 19:49:15 +02:00
sun4i_crtc.c drm/sun4i: tcon: Don't rely on encoders to set the TCON mode 2017-10-17 19:49:13 +02:00
sun4i_crtc.h
sun4i_dotclock.c drm/sun4i: Create minimal multipliers and dividers 2018-01-04 20:08:42 +01:00
sun4i_dotclock.h
sun4i_drv.c drm/sun4i: Add A83T support 2018-01-04 20:37:59 +01:00
sun4i_drv.h drm/sun4i: Use drm_fb_cma_fbdev_init/fini() 2017-12-08 14:47:42 +01:00
sun4i_framebuffer.c drm/sun4i: Use drm_fb_cma_fbdev_init/fini() 2017-12-08 14:47:42 +01:00
sun4i_framebuffer.h drm/sun4i: Use drm_fb_cma_fbdev_init/fini() 2017-12-08 14:47:42 +01:00
sun4i_hdmi_ddc_clk.c drm/sun4i: tcon: Don't rely on encoders to set the TCON mode 2017-10-17 19:49:13 +02:00
sun4i_hdmi_enc.c drm/sun4i: hdmi: Move the mode_valid callback to the encoder 2017-12-20 12:59:46 +01:00
sun4i_hdmi_i2c.c drm/sun4i: hdmi: Add support for controller hardware variants 2017-10-11 09:53:33 +02:00
sun4i_hdmi_tmds_clk.c drm/sun4i: tcon: Don't rely on encoders to set the TCON mode 2017-10-17 19:49:13 +02:00
sun4i_hdmi.h drm/sun4i: hdmi: Document PAD_CTRL1 output invert bits 2017-10-16 09:54:21 +02:00
sun4i_layer.c Allwinner DRM changes for 4.14 2017-08-21 09:05:01 +10:00
sun4i_layer.h
sun4i_lvds.c drm/sun4i: Add LVDS support 2018-01-04 20:37:17 +01:00
sun4i_lvds.h drm/sun4i: Add LVDS support 2018-01-04 20:37:17 +01:00
sun4i_rgb.c drm/sun4i: tcon: Don't rely on encoders to set the TCON mode 2017-10-17 19:49:13 +02:00
sun4i_rgb.h
sun4i_tcon.c Linux 4.15-rc8 2018-01-18 09:32:15 +10:00
sun4i_tcon.h drm/sun4i: Add LVDS support 2018-01-04 20:37:17 +01:00
sun4i_tv.c drm/sun4i: tcon: Don't rely on encoders to set the TCON mode 2017-10-17 19:49:13 +02:00
sun6i_drc.c
sun8i_csc.c drm/sun4i: Add DE2 CSC library 2017-12-05 13:22:44 +01:00
sun8i_csc.h drm/sun4i: Add DE2 CSC library 2017-12-05 13:22:44 +01:00
sun8i_mixer.c drm/sun4i: Add A83T support 2018-01-04 20:37:59 +01:00
sun8i_mixer.h drm/sun4i: Force the mixer rate at 150MHz 2018-01-04 20:04:32 +01:00
sun8i_ui_layer.c drm/sun4i: Add DE2 definitions for YUV formats 2017-12-05 13:22:44 +01:00
sun8i_ui_layer.h drm/sun4i: Reorganize UI layer code in DE2 2017-12-05 13:22:43 +01:00
sun8i_ui_scaler.c drm/sun4i: Add support for HW scaling to DE2 2017-12-05 13:22:44 +01:00
sun8i_ui_scaler.h drm/sun4i: Add support for HW scaling to DE2 2017-12-05 13:22:44 +01:00
sun8i_vi_layer.c drm/sun4i: Fix uninitialized variables in vi layer 2017-12-07 09:51:41 +01:00
sun8i_vi_layer.h drm/sun4i: Add support for DE2 VI planes 2017-12-05 13:22:43 +01:00
sun8i_vi_scaler.c drm/sun4i: Expand DE2 scaler lib with YUV support 2017-12-05 13:22:44 +01:00
sun8i_vi_scaler.h drm/sun4i: Expand DE2 scaler lib with YUV support 2017-12-05 13:22:44 +01:00
sunxi_engine.h drm/sun4i: backend: Document the engine operations 2018-01-22 15:14:43 +01:00