Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: [PATCH] Make grundig_29504-401 tuner work onmodule re-insertion



Holger Waechtler wrote:
Could you please test his patch and report if it works flawlessly for you? If so I'll commit it to the CVS source.
I tried his patch and it worked. I simplified it a bit more and this works for me. See the patch attached.

Are the relevant datasheets available?
Yes, they're available on the LSI website, at least they've been so for
I could only find a real technical datasheet for a different part, the L64780. It looks like a lot of the interesting registers for the L64781 part are different.


Jon
--- grundig_29504-401.c.orig	2003-06-07 12:53:55.000000000 +0100
+++ grundig_29504-401.c	2003-06-10 23:17:52.000000000 +0100
@@ -433,10 +433,7 @@
 	struct i2c_msg msg [] = { { .addr = 0x55, .flags = 0, .buf = b0, .len = 1 },
 			   { .addr = 0x55, .flags = I2C_M_RD, .buf = b1, .len = 1 } };
 
-	if (i2c->xfer (i2c, msg, 2) == 2)   /*  probably an EEPROM... */
-		return -ENODEV;
-
-	reset_and_configure (i2c);
+	init(i2c);
 
 	if (i2c->xfer (i2c, msg, 2) != 2)   /*  nothing... */
 		return -ENODEV;

Home | Main Index | Thread Index