Skip to contentSkip to conversation

saa7146_i2c_writeout: timed out waiting for end of xfer

linux-dvb Sigmund Augdal 1 participant 1 message Feb 13, 2008 4 messages not in the archive Media (V4L/DVB)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1180167750.15156.4.camel@localhost

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

tir, 17.07.2007 kl. 07.45 +0200, skrev Oliver Endriss:

Quoted 7 lines
Quoted 6 lines · Oliver Endriss

Imho the interrupt processing was broken:
- The first I2C interrupt should be used to wake-up the task. It does not matter that it takes some time until ERR in IIC_STA will be updated. We don't need it.
- Interrupts must be acknowledged at the end of the ISR.

Quoted 5 lines
Quoted 3 lines

@all
Please test the attached patch.
There shouldn't be any unexpected I2C interrupts anymore.

Attached is an updated patch which does extended status checking.

I've been running 2.6.20 + this patch on several boxes with several TechnoTrend budget S-1500 cards for quite some time now and it seems quite stable. However latly I have also tried some Technotrend T-1500 cards and some times I get messages like this:
saa7146_i2c_writeout: unexpected i2c status 0021
Normally I get a single message like that right after the firmware upload to the frontend is completed, and that seems to cause no problems, but other times I get it at other times (for insance during the firmware upload). And some times I get streams of these (mixed with status 0009 and 0011) coming repeatedly during some operations.

I tried installing latest hg v4l-dvb (without any changes) on one of these boxes and there are no such messages then, however the same problems seem to arise just with fewer error messages. And I get this message:
saa7146 (5) saa7146_i2c_writeout [irq]: timed out waiting for end of xfer

It seems the problems is not strickly limited to the frontend communications. Trying for instance to communicate with the CAM can increase the amount of error messages.

Regards

Sigmund Augdal

Quoted 8 lines

CU
Oliver

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb