An error occurred fetching the project authors.
  1. 11 Nov, 2017 1 commit
  2. 26 Sep, 2017 1 commit
  3. 09 Sep, 2017 1 commit
  4. 29 Jul, 2017 1 commit
  5. 26 Jul, 2017 1 commit
  6. 17 May, 2017 1 commit
  7. 14 Mar, 2017 1 commit
  8. 17 Feb, 2017 1 commit
  9. 09 Feb, 2017 1 commit
  10. 07 Feb, 2017 1 commit
  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. 27 Jan, 2017 1 commit
  13. 30 Dec, 2016 1 commit
  14. 30 Nov, 2016 4 commits
  15. 29 Nov, 2016 4 commits
  16. 02 Nov, 2016 1 commit
  17. 17 Oct, 2016 1 commit
  18. 23 Sep, 2016 1 commit
  19. 22 Sep, 2016 1 commit
  20. 07 Sep, 2016 3 commits
  21. 01 Sep, 2016 3 commits
  22. 29 Aug, 2016 1 commit
  23. 08 Aug, 2016 8 commits
    • Jyri Sarha's avatar
      drm/tilcdc: Get rid of legacy dpms mechanism · 47bfd6c0
      Jyri Sarha authored
      Get rid of legacy dpms mechanism. This simplifies the code quite a
      bit. The old start() and stop() functions become tilcdc_crtc_enable()
      and *_disable(). The functions are added with all the necessary
      mechanisms from the old dpms function and they are used directly as
      the crtc helper enable() and disable() callbacks.
      Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
      47bfd6c0
    • Jyri Sarha's avatar
      drm/tilcdc: Use drm_atomic_helper_resume/suspend() · 514d1a1f
      Jyri Sarha authored
      Use drm_atomic_helper_resume/suspend() and get rid off all the obsolete
      register level context restoring code.
      Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
      514d1a1f
    • Jyri Sarha's avatar
      drm/tilcdc: Enable and disable interrupts in crtc start() and stop() · afaf833d
      Jyri Sarha authored
      Enable and disable interrupts in crtc start() and stop(). None of the
      interrupts can fire if CRTC is disabled, so it is cleaner - when
      considering suspend/resume code etc. - to enable the interrupts when
      CRTC is turned on and to disable them when CRTC is turned off.
      Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
      afaf833d
    • Jyri Sarha's avatar
      drm/tilcdc: Set DRIVER_ATOMIC and use atomic crtc helpers · 305198de
      Jyri Sarha authored
      Set DRIVER_ATOMIC and use atomic helpers and rename commit and prepare
      crtc helpers to enable and disable. This makes the final jump to mode
      setting, but there is lot of obsolete code to clean up.
      Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
      305198de
    • Jyri Sarha's avatar
      drm/tilcdc: Add drm_mode_config_reset() call to tilcdc_load() · 522a76f8
      Jyri Sarha authored
      Add drm_mode_config_reset() call to tilcdc_load(). This is need to
      initialize atomic state variables at load time.
      Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
      522a76f8
    • Jyri Sarha's avatar
      drm/tilcdc: Add atomic mode config funcs · edc43303
      Jyri Sarha authored
      Add atomic mode config funcs. The atomic_commit implementation is a
      copy-paste from drm_atomic_helper_commit(), leaving out the async
      test. The similar copy-paste implementation appears to be used in many
      other drivers too. The standard drm_atomic_helper_check() is used for
      checking.
      
      The drm_atomic_helper_check() can not be used in drm_mode_config_funcs
      atomic_check() callback because the plane's check implementation may
      update crtc state's ->mode_changed flag. Because of this the
      drm_atomic_helper_check_modeset() has to be called once more after
      drm_atomic_helper_check_planes() (see drm_atomic_helper_check_modeset()
      documentation).
      Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
      edc43303
    • Jyri Sarha's avatar
      drm/tilcdc: Fix tilcdc component master unloading · 20a98acb
      Jyri Sarha authored
      Fix tilcdc component master unloading. If a subcomponent module
      (tda998x in this case) is unloaded before its master (tilcdc in this
      case), it calls drm_put_dev() and it should not be called again by
      the master when its module is unloaded. However component_master_del()
      must still be called and the check if the drm_put_dev() has been
      called must be in component_master_ops unbind() callback, not in
      platform_driver remove() callback.
      Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
      20a98acb
    • Jyri Sarha's avatar
      drm/tilcdc: Restore old dpms state in pm_resume() · 8fe5616b
      Jyri Sarha authored
      Restore old dpms state in pm_resume(). The dpms is turned off in
      pm_suspend() and it should be restored to its original state in
      pm_resume(). Without this patch the display is left blanked after a
      suspend/resume cycle.
      
      Fixes commit 614b3cfe ("drm/tilcdc: disable the lcd controller/dma
      engine when suspend invoked")
      Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
      8fe5616b