1. 24 Nov, 2017 2 commits
  2. 27 Aug, 2017 1 commit
  3. 29 Jul, 2017 1 commit
  4. 13 Jul, 2017 1 commit
  5. 01 Jun, 2017 1 commit
  6. 24 Apr, 2017 7 commits
  7. 06 Apr, 2017 1 commit
  8. 14 Mar, 2017 1 commit
  9. 12 Feb, 2017 1 commit
  10. 07 Feb, 2017 2 commits
  11. 02 Feb, 2017 1 commit
    • Gabriel Krisman Bertazi's avatar
      drm: Rely on mode_config data for fb_helper initialization · e4563f6b
      Gabriel Krisman Bertazi authored
      Instead of receiving the num_crts as a parameter, we can read it
      directly from the mode_config structure.  I audited the drivers that
      invoke this helper and I believe all of them initialize the mode_config
      struct accordingly, prior to calling the fb_helper.
      
      I used the following coccinelle hack to make this transformation, except
      for the function headers and comment updates.  The first and second
      rules are split because I couldn't find a way to remove the unused
      temporary variables at the same time I removed the parameter.
      
      // <smpl>
      @r@
      expression A,B,D,E;
      identifier C;
      @@
      (
      - drm_fb_helper_init(A,B,C,D)
      + drm_fb_helper_init(A,B,D)
      |
      - drm_fbdev_cma_init_with_funcs(A,B,C,D,E)
      + drm_fbdev_cma_init_with_funcs(A,B,D,E)
      |
      - drm_fbdev_cma_init(A,B,C,D)
      + drm_fbdev_cma_init(A,B,D)
      )
      
      @@
      expression A,B,C,D,E;
      @@
      (
      - drm_fb_helper_init(A,B,C,D)
      + drm_fb_helper_init(A,B,D)
      |
      - drm_fbdev_cma_init_with_funcs(A,B,C,D,E)
      + drm_fbdev_cma_init_with_funcs(A,B,D,E)
      |
      - drm_fbdev_cma_init(A,B,C,D)
      + drm_fbdev_cma_init(A,B,D)
      )
      
      @@
      identifier r.C;
      type T;
      expression V;
      @@
      - T C;
      <...
      when != C
      - C = V;
      ...>
      // </smpl>
      
      Changes since v1:
       - Rebased on top of the tip of drm-misc-next.
       - Remove mention to sti since a proper fix got merged.
      Suggested-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      Signed-off-by: default avatarGabriel Krisman Bertazi <krisman@collabora.co.uk>
      Reviewed-by: default avatarEric Anholt <eric@anholt.net>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/20170202162640.27261-1-krisman@collabora.co.uk
      e4563f6b
  12. 26 Jan, 2017 2 commits
  13. 23 Jan, 2017 1 commit
  14. 04 Nov, 2016 2 commits
  15. 02 Nov, 2016 3 commits
  16. 31 Oct, 2016 1 commit
    • Brian Starkey's avatar
      drm/i2c: tda998x: mali-dp: hdlcd: refactor connector registration · 90731c24
      Brian Starkey authored
      Connectors shouldn't be registered until the rest of the whole device
      is set up, so that consistent state is presented to userspace.
      
      As such, remove the calls to drm_connector_register() and
      drm_connector_unregister() from tda998x, as these are now handled by
      drm_dev_(un)register() itself.
      
      To work with this change, the mali-dp and hdlcd bind and unbind
      sequences have to be reordered, to ensure that the componentised
      encoder/connector is bound before drm_dev_register() registers all
      connectors. Similarly, the device must be unregistered before the
      component is unbound.
      
      Altogether, this allows other drivers using tda998x to be
      de-midlayered, and to have less racy initialisation of their components.
      
      Splitting this commit into three (one per driver) isn't possible without
      intermediate breakage, so it is all squashed together here.
      Suggested-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: default avatarBrian Starkey <brian.starkey@arm.com>
      Reviewed-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      90731c24
  17. 25 Oct, 2016 1 commit
  18. 22 Sep, 2016 1 commit
  19. 29 Aug, 2016 1 commit
  20. 28 Jul, 2016 2 commits
  21. 26 Jul, 2016 1 commit
  22. 15 Jun, 2016 1 commit