]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fsl-dcu: avoid disabling pixel clock twice on suspend
authorStefan Agner <stefan@agner.ch>
Thu, 9 Nov 2017 14:39:56 +0000 (15:39 +0100)
committerStefan Agner <stefan@agner.ch>
Tue, 14 Nov 2017 16:19:23 +0000 (17:19 +0100)
commit93c0fda118f014c8306d20ca1e2e46b28219d610
treec7faa1d715bf1260cc9c078cd5dd1bf2287a42e0
parent528f52aac37b405de97c5547349d8ec6ddcf2c59
drm/fsl-dcu: avoid disabling pixel clock twice on suspend

With commit bdffd100d828 ("drm/fsl-dcu: enable pixel clock when
enabling CRTC") the pixel clock is controlled by the CRTC code.
Disabling the pixel clock in suspend leads to a warning due to
the second clk_disable_unprepare call:
  WARNING: CPU: 0 PID: 359 at drivers/clk/clk.c:594 clk_core_disable+0x8c/0x90

Remove clk_disable_unprepare call for pixel clock to avoid
unbalanced clock disable on suspend.

Fixes: bdffd100d828 ("drm/fsl-dcu: enable pixel clock when enabling CRTC")
Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c