]> git.baikalelectronics.ru Git - kernel.git/commit
drm/armada: fix clock counts
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 4 Oct 2016 21:19:57 +0000 (22:19 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 4 Oct 2016 21:20:00 +0000 (22:20 +0100)
commitdd004e046fb45d3db078c137a6d4fd7252bd8a69
treef484dd7c9dac8bf30cfa6e768dfa115ed8664378
parent465d54c334eb2249c3dde733f1b0d01221df9f71
drm/armada: fix clock counts

The DPMS handling wrt clock enables/disables was incorrect: we could end
up decrementing the clock count multiple times if we transition via
several low-power DPMS states, resulting in a kernel warning.  Fix this
by only testing to see whether we are entering or exiting the DPMS off
state.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/armada/armada_crtc.c