* [PATCH] drm/i915/dvo-ch7xxx: fix get_hw_state
@ 2012-10-11 16:43 Daniel Vetter
2012-10-11 16:47 ` Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Vetter @ 2012-10-11 16:43 UTC (permalink / raw)
To: Intel Graphics Development; +Cc: Daniel Vetter
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 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/dvo_ch7xxx.c b/drivers/gpu/drm/i915/dvo_ch7xxx.c
index 38f3a6c..3edd981 100644
--- a/drivers/gpu/drm/i915/dvo_ch7xxx.c
+++ b/drivers/gpu/drm/i915/dvo_ch7xxx.c
@@ -303,10 +303,10 @@ static bool ch7xxx_get_hw_state(struct intel_dvo_device *dvo)
ch7xxx_readb(dvo, CH7xxx_PM, &val);
- if (val & CH7xxx_PM_FPD)
- return false;
- else
+ if (val & (CH7xxx_PM_DVIL | CH7xxx_PM_DVIP))
return true;
+ else
+ return false;
}
static void ch7xxx_dump_regs(struct intel_dvo_device *dvo)
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/i915/dvo-ch7xxx: fix get_hw_state
2012-10-11 16:43 [PATCH] drm/i915/dvo-ch7xxx: fix get_hw_state Daniel Vetter
@ 2012-10-11 16:47 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2012-10-11 16:47 UTC (permalink / raw)
To: Intel Graphics Development; +Cc: Daniel Vetter
On Thu, Oct 11, 2012 at 06:43:52PM +0200, Daniel Vetter wrote:
> 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>
... and merged right away to -fixes.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-11 16:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-11 16:43 [PATCH] drm/i915/dvo-ch7xxx: fix get_hw_state Daniel Vetter
2012-10-11 16:47 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox