Le Samedi 8 Octobre 2005 04:13, Jacques Facquet a écrit :
> Le Samedi 8 Octobre 2005 04:02, Tyler Trafford a écrit :
> > Jacques Facquet wrote:
> > >> After loading this, what's the output of:
> > >>
> > >> cx25840ctl -l | grep DL_ADDR
> > >
> > > DL_ADDR_LB=231 (0xE7)
> > > DL_ADDR_HB=1 (0x1)
> >
> > That's odd because it's only failing on the fast load, but then
> > it falls back to 100MHz and there's no error message on that...
> >
> > Does this happen with the same values for DL_ADDR_* every time?
>
> No, I'm trying some different code, stay tuned.
Well ...
This append when I'm at minimum CPU speed on my PC.
AMD 64 ondemand, no chance to load the firmware if fast load fail.
check_fw_load() failed.
I think that the first time i2c_master_send return a negative value
some bytes have been writen, no idea how many.
my test code :
int rc;
int localsize;
u8 *localdata;
rc= i2c_master_send(client, data, size);
if (rc != size) {
if (info->fastfw) {
if (rc < 0) rc=0;
CX25840_ERR("fast firmware load failed\n");
info->fastfw = 0;
cx25840_i2c_set_delay(client, 10);
localsize=size-rc;
localdata=data+rc;
loop=0; // just in case ...
do {
rc=i2c_master_send(client, localdata,
localsize);
rc == localsize ==1024, so, it's OK but check_fw_load()
failed.
that's all I can do today, it's 4h48 am and I'm pretty tired, sorry.
--
Jacques Facquet.
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel