Merge tag 'drm-misc-fixes-2018-06-21' of git://anongit.freedesktop.org/drm/drm-misc...
authorDave Airlie <airlied@redhat.com>
Thu, 21 Jun 2018 23:58:57 +0000 (09:58 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 22 Jun 2018 01:03:43 +0000 (11:03 +1000)
Fixes for v4.18-rc2:
- A reversion of a commit in drm/sun4i to fix a run-time fault.
- Various fixes to the sii8620 bridge.
- Small bugfix to correctly check stride in atmel-hlcdc.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/787d4bef-a579-4046-d0fc-f8c2c5b80c25@linux.intel.com
1  2 
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
drivers/gpu/drm/sun4i/sun4i_tcon.c

index 73c875db45f4346afd5a25408e9264c466401138,7b8191eae68a02796c086dd7c634e8da640a7d41..47e0992f39083161d46c5d1759f0c06f5cf2c0de
@@@ -831,15 -871,11 +831,15 @@@ static int atmel_hlcdc_plane_init_prope
        const struct atmel_hlcdc_layer_desc *desc = plane->layer.desc;
  
        if (desc->type == ATMEL_HLCDC_OVERLAY_LAYER ||
 -          desc->type == ATMEL_HLCDC_CURSOR_LAYER)
 -              drm_object_attach_property(&plane->base.base,
 -                                         props->alpha, 255);
 +          desc->type == ATMEL_HLCDC_CURSOR_LAYER) {
 +              int ret;
 +
 +              ret = drm_plane_create_alpha_property(&plane->base);
 +              if (ret)
 +                      return ret;
 +      }
  
-       if (desc->layout.xstride && desc->layout.pstride) {
+       if (desc->layout.xstride[0] && desc->layout.pstride[0]) {
                int ret;
  
                ret = drm_plane_create_rotation_property(&plane->base,
Simple merge