1. 07 9月, 2016 3 次提交
    • J
      drm/tilcdc: Take CRTC lock when calling tilcdc_crtc_disable() · 6c94c714
      Jyri Sarha 提交于
      Take CRTC lock when calling tilcdc_crtc_disable() in
      tilcdc_crtc_destroy().
      
      In theory there could still be some operation ongoing, which should
      finish before destroying the CRTC. However, the main reason for
      adding this is to be able to add WARNing in tilcdc_crtc_disable() if
      CRTC is not locked.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      Reviewed-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      6c94c714
    • J
      drm/tilcdc: Flush flip-work workqueue before drm_flip_work_cleanup() · 4e910c7a
      Jyri Sarha 提交于
      Flush flip-work workqueue before drm_flip_work_cleanup(). It causes a
      nasty warning if there is unfinished flip-work in the queue when
      drm_flip_work_cleanup() is called. The flush_workqueue() has to be
      called before drm_crtc_cleanup() for unref_worker() to be able to do
      its job.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      Reviewed-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      4e910c7a
    • J
      drm/tilcdc: Clean up LCDC functional clock rate setting code · 642e5167
      Jyri Sarha 提交于
      Clean up LCDC functional clock rate setting code.
      
      The LCDC functional clock is set by two functions: mode_set_nofb() and
      cpufreq_transition().
      
      When tilcdc_crtc_mode_set_nofb() is called in atomic commit phase the
      drm atomic helpers have taken all the necessary drm locks and turned
      off the crtc, while tilcdc_commit() is keeping LCDC powered on. For
      mode_set_nofb() just a simple clock setting function without any
      locking or power management code is enough. The new tilcdc_crtc_set_clk()
      is implemented for that purpose.
      
      cpufreq_transition() on the other hand is called from outside DRM and
      it needs to take the necessary locks and turn off the CRTC while
      keeping the LCDC powered. The reimplemented tilcdc_crtc_update_clk()
      is for that purpose and it uses the new tilcdc_crtc_set_clk() to
      actually set the clock.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      Reviewed-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      642e5167
  2. 02 9月, 2016 3 次提交
  3. 09 8月, 2016 18 次提交
  4. 12 7月, 2016 1 次提交
  5. 02 5月, 2016 1 次提交
  6. 25 2月, 2016 13 次提交
  7. 08 2月, 2016 1 次提交