Re: [PATCH 5/7] af9015 usb bus repeater.

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

 



On 11/12/2011 05:56 PM, Malcolm Priestley wrote:
This a bus repeater for af9015 devices. Commands usually fail because of other
activity on the usb bus.

Afatech drivers can repeat up to ten times on the usb bus.

bulk failures that report -ETIMEDOUT or -EBUSY are repeated. If the device fails
it usually return 0x55 in the first byte.

I am working on a patch to move parts of this to the dvb-usb common area to
be used by other drivers.

Repeating does not help for those I2C errors. I have already tested it. IIRC 01 and 02 was the error codes returned in case of I2C read / write.

Which command gives 0x55 for failing?

And generally only very first command will fail. There is already repeat for that. Generally I think it is good idea to add some repeating, since it is needed. But it does not make much sense to repeat for those common I2C errors since it does not matter - you can repeat forever it still fails. So first need to fix main error source.

And it is indeed good idea to generalize it, but I think it is possible only for error situations when error is returned by platform call.
1. general repeat for platform calls
2. repeat for firmware command fail (is there need?)

regards
Antti

--
http://palosaari.fi/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux