Return-path: Received: from mailfe08.c2i.net ([212.247.154.226]:38494 "EHLO swip.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932945Ab2JCSzn (ORCPT ); Wed, 3 Oct 2012 14:55:43 -0400 From: Hans Petter Selasky To: Jose Alberto Reguero Subject: Re: [PATCH] Add toggle to the tt3650_rc_query function of the ttusb2 driver Date: Wed, 3 Oct 2012 20:57:07 +0200 Cc: linux-media@vger.kernel.org References: <2504977.yNAtCnX8Pk@jar7.dominio> <201210022152.11115.hselasky@c2i.net> In-Reply-To: <201210022152.11115.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201210032057.07711.hselasky@c2i.net> Sender: linux-media-owner@vger.kernel.org List-ID: On Tuesday 02 October 2012 21:52:11 Hans Petter Selasky wrote: > On Saturday 08 September 2012 19:08:22 Jose Alberto Reguero wrote: > > This patch add the toggle bit to the tt3650_rc_query function of the > > ttusb2 driver. > > > > Signed-off-by: Jose Alberto Reguero > > > > Jose Alberto > > Hi, > > This patch looks OK. > Hi, > Regarding the TTUSB2 support, I see an issue where the IR polling > interference with the CAM access. If a IR poll request happens exactly > between a write/read CAM request, then that CAM request will fail. How can > this issue be solved without disabling the IR support entirely? I checked the code and see that "dvb_usb_generic_rw()" will synchronize the requests, so this can't be the root cause. Currently I suspect the not brand new AMD based EHCI controller I'm using to connect my TTUSB adapter to be at fault. This is FreeBSD, not Linux. What I see when I dump all the transactions is that I have quite frequent timeouts on some of the I2C/CAM and IR commands going on the BULK endpoints. For example grepp'ed log extract looks like this: 0000 55 3B 42 02 00 A0 01 DF 00 00 00 00 00 FB F5 81 |U;B.............| 0000 AA 3C 42 02 00 01 -- -- -- -- -- -- -- -- -- -- |.1..... | 0000 55 3E 31 04 10 01 01 DF 00 00 00 00 00 FB F5 81 |U>1.............| 0000 AA 3D 42 02 00 01 -- -- -- -- -- -- -- -- -- -- |.=B... | 0000 55 3D 42 02 00 01 01 DF 00 00 00 00 00 FB F5 81 |U=B.............| 0000 AA 40 41 01 01 -- -- -- -- -- -- -- -- -- -- -- |.@A.. | I'm now trying some EHCI quirks, and will see what results I get later this week. I can also say that VDR receives a ring buffer overflow at exactly the same time the USB BULK endpoint timeout happens .... If this sounds familar to anyone, please let me know. Thank you, --HPS