Hello You have to identify situation where it does not work, optimally single known channel. Then switch to working driver and tune that same channel and take sniffs. Then generate code from sniffs, copy paste that to non-working driver until it starts working. Then it is quite trivial to find out by error and trial tests & binary search where the problematic register is. Here is some tips. http://blog.palosaari.fi/2013/07/generating-rtl2832u-driver-code.html Hacking script I used is attached, just for the example. regards Antti On 15.11.2013 01:35, David Howells wrote: > > Here are four logs from doing: > > scandvb -a1 ./e.1 > > where the contents of file e.1 are: > > S 11919000 V 27500000 3/4 > > which is probing a region on the Eutelsat-9A satellite broadcast. > > I inserted: > > diff -uNr linux-3.11.7-300.dvbsky_4.fc20.x86_64/drivers/i2c/i2c-core.c i2c-monitor/drivers/i2c/i2c-core.c > --- i2c-monitor/drivers/i2c/i2c-core.c 2013-09-02 21:46:10.000000000 +0100 > +++ linux-3.11.7-300.dvbsky_4.fc20.x86_64/drivers/i2c/i2c-core.c 2013-11-14 22:11:08.757282401 +0000 > @@ -1491,6 +1491,16 @@ > unsigned long orig_jiffies; > int ret, try; > > + for (ret = 0; ret < num; ret++) { > + if (msgs[ret].flags & I2C_M_RD) > + pr_notice("I2C %s: RD %02x %u\n", > + adap->name, msgs[ret].addr, msgs[ret].len); > + else > + pr_notice("I2C %s: WR %02x %u [%*phN]\n", > + adap->name, msgs[ret].addr, msgs[ret].len, > + msgs[ret].len, msgs[ret].buf); > + } > + > /* Retry automatically on arbitration loss */ > orig_jiffies = jiffies; > for (ret = 0, try = 0; try <= adap->retries; try++) { > > into the kernel to generate these logs. > > The four logs are: > > (1) DVBSky's megapatch: I2C traffic generated by cx23885 module initialisation > and probing. > > (2) DVBSky's megapatch: I2C traffic generated by the aforementioned scandvb > command. > > (3) Antti's drivers plus my S952 glue: I2C traffic generated by cx23885 > module initialisation and probing. > > (4) Antti's drivers plus my S952 glue: I2C traffic generated by the > aforementioned scandvb command. > > The scandvb command with the DVBSky megapatch gave: > > dumping lists (25 services) > Italy Service:11919:v:0:27500:2003:3003:3 > Karusel int:11919:v:0:27500:2004:3004:4 > SVT WORLD:11919:v:0:27500:2008:3008:8 > ... > > and was very consistent. > > Antti's patch gave: > > dumping lists (22 services) > [0001]:11919:v:0:27500:0:0:1 > [0003]:11919:v:0:27500:0:0:3 > [000d]:11919:v:0:27500:0:0:13 > ... > > and sometimes: > > dumping lists (0 services) > > and once: > > dumping lists (32 services) > [f714]:11919:v:0:27500:0:0:63252 > [e38b]:11919:v:0:27500:0:0:58251 > [b7ba]:11919:v:0:27500:0:0:47034 > ... > > David > -- http://palosaari.fi/