]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dvo-ch7xxx: fix get_hw_state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 11 Oct 2012 16:43:52 +0000 (18:43 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 12 Oct 2012 08:59:11 +0000 (10:59 +0200)
commit447d9ca009c9ec779dbc12dbe4958b893fb33b0a
tree97c09c51159e1bea8992d446499c921ddf1aba3f
parent1d52a368cbb8e8900876d01c2e47549df1971078
drm/i915/dvo-ch7xxx: fix get_hw_state

The boot-up state seems to be all-zeros, so it's safer to check for
the bits that need to be set when the dvo encoder is in the dpms on
state, than checking the bits we set when it's in the off state.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55047
Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/dvo_ch7xxx.c