]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Dec 2017 12:40:36 +0000 (13:40 +0100)
commitc8111b1885d3a802e57f895e77aaa1e88de57282
tree75718b793705f30e6fd2c2a19d1490819f7b90ce
parent51a2a68fde2035887c0d74aee1c9569c691dfd61
drm/fsl-dcu: avoid disabling pixel clock twice on suspend

commit 9306e996574f7f57136a62e49cd0075f85713623 upstream.

With commit 0a70c998d0c5 ("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: 0a70c998d0c5 ("drm/fsl-dcu: enable pixel clock when enabling CRTC")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c