linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] viafb: don't setup TMDS if it doesn't exist
@ 2010-09-25 19:52 Daniel Drake
  2010-09-25 20:20 ` Florian Tobias Schandinat
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Daniel Drake @ 2010-09-25 19:52 UTC (permalink / raw)
  To: linux-fbdev

The OLPC XO-1.5 does not have this particular output interface.
However, init_tmds_chip_info() always assumes it to be present,
ignoring failure codes from viafb_tmds_trasmitter_identify().

This fixes lack of output on the XO-1.5 laptop display.
Thanks to Jon Nettleton for helping identify the problematic code.

Signed-off-by: Daniel Drake <dsd@laptop.org>
---
 drivers/video/via/hw.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c
index 7dcb4d5..a24d03f 100644
--- a/drivers/video/via/hw.c
+++ b/drivers/video/via/hw.c
@@ -2125,7 +2125,8 @@ static void init_gfx_chip_info(int chip_type)
 
 static void init_tmds_chip_info(void)
 {
-	viafb_tmds_trasmitter_identify();
+	if (viafb_tmds_trasmitter_identify() != OK)
+		return;
 
 	if (INTERFACE_NONE = viaparinfo->chip_info->tmds_chip_info.
 		output_interface) {
-- 
1.7.2.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-26 14:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-25 19:52 [PATCH] viafb: don't setup TMDS if it doesn't exist Daniel Drake
2010-09-25 20:20 ` Florian Tobias Schandinat
2010-09-25 20:23 ` Daniel Drake
2010-09-25 21:06 ` Florian Tobias Schandinat
2010-09-26 14:51 ` Daniel Drake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).