From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752396AbdJ0RHn (ORCPT ); Fri, 27 Oct 2017 13:07:43 -0400 Received: from mout.web.de ([217.72.192.78]:64834 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750962AbdJ0RHl (ORCPT ); Fri, 27 Oct 2017 13:07:41 -0400 From: Alois Fertl To: linux-kernel@vger.kernel.org Cc: Alois Fertl Subject: Re: [PATCH 0/3] support for Logilink VG0022a DVB-T2 stick Date: Fri, 27 Oct 2017 19:07:27 +0200 Message-Id: <20171027170727.3179-1-alois.fertl@web.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <1489616530-4025-1-git-send-email-andreas@kemnade.info> References: <1489616530-4025-1-git-send-email-andreas@kemnade.info> X-Provags-ID: V03:K0:zQ7xTffSMWM/qBHs1vr5AXMgx3QpPkyfD4LVcjGhuRHHj/Jht8V lUPc5TkXy1HMn5p6X6hXXxninAcMxm1oWmKYLM0fMlhF/4DMk+7SFqBNvVbUSYEsmFKgsB1 zNSwxmCq4s8WYdy0WBxruxbmzXRRj60eqh9f3tevD6ggUky7USnHv01Mq9Wc5snYj5p3Brc I4FFNPM3CVI6PygMAcsig== X-UI-Out-Filterresults: notjunk:1;V01:K0:tHW+VfhSON4=:YEtGvKgqc+t/zN8LJ3Hl/i BT7m638KydI3zKWxeRFQw8YzC14RadIMjDeIbgg3CtSO0WuFqHX1Ma0h+AJGLwjRIpz6dqy2C osuFoGR+GahSjowczLcMl1U+xrGmm1Doqygms2BpuWL4zfxB/PDbUSLtYKwBlIhflr/f0Pusz qYQrYRNlWB5xQRu/yiov+qhej7IJ7/N4bGXpOg/PEBtdoJ6HS8FxmCwND0Umb2GIQC///EM/4 Ugk3kqZh9YoKVbuZKjbmLlj4HGz6+Drbi6QlRC4115Da+IhM6C9EOwfn9QfZv5qXGt6iNKeZf D0llIRvIbfTN6WfeS1XYOlQX899qRtSXAlq1mmBQ7b5qY9w2qB7IOL26OOJNPqsrKAKqRORMl zYyyxD0DBGnOYBCbmJLRm5K8/Q8G3ZPa6CR0W9xRiveGU5a66sPUXSn+S10EjIguoD47Icpp+ PBGTtiECw3g8OY+9CS4yC+ZgzD6HBtHodBZMJurrwXUUmgU7Erqyiec2HJ0ZjbznatdlAgYZg cNtYqPW4zAl0E5MyM9Mrl4JEhmn937Lsvp1TcKqBNWx6284tApqZRcQWPimxZYJyi2MWRMvGx aVJjCKhtwyGrCVQS09Kjk6GJTBbQM2g6IJcDJ4HO4dbYo3bXB7W9j9G8aVCVbnC3oevbB1uHe AQXscjCmM04bt5R8jAqxh8BhFGdzPWszWOjfIJdjiHmng1meVpo3AiUA2Um4fXN30l1/wQKup TCdx98hlOJZsmBdIX0qIAWeNzo8rBxivQ6bBk1i2/+dhew/E2w9VRceLp3m1Sjr15YvRb8p33 J3yXbkY9Rxymlhup9lA7wfr4GWMWg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello All, I'm responding to this thread because I have a Terretec CINERGY TC2 Stick, similar chips, it9303/si2147/si2168, which shows the same problem. Connecting a scope to the physical i2c bus between 2147 and 2168 gave some suprising results. With probe connected to the sda line, the i2c communication starts working reliable, after disconnecting it failed again. Going further into it indicates that the communication works up to the point where the loaded si2168 firmware starts executing, guess this is after sending the \x01\x01 as already found by Andreas. So probably the firmware configures something in the si2168 that makes i2c bus weak? firmware issue? Even more I could imagine that some of these USB sticks do work and others not. I managed to fix the i2c bus by physically changing the pull-up on the sda line from 4k7 to 10k. So I have a working stick without probe being connected to test what Patches are needed. No changes to current si2157.c and si2148.c sources are necessary in this configuration. The only reqired changes are in af9035.c: 1st Add the Terratec to the IT903x device table. 2nd Put the it930x initialization stuff, baud rate, port etc. from it930x_tuner_attach also into it930x_frontend_attach. Actually it seems sufficient to have it only in frontend_attach. With this I see the following and the device works fine with tvheadend: [ 3728.290172] WARNING: You are using an experimental version of the media stack. As the driver is backported to an older kernel, it doesn't offer enough quality for its usage in production. Use it with care. Latest git patches (needed if you report a bug to linux-media@vger.kernel.org): 61065fc3e32002ba48aa6bc3816c1f6f9f8daf55 Merge commit '3728e6a255b5' into patchwork 3728e6a255b50382591ee374c70e6f5276a47d0a Merge tag 'media/v4.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 7571358dd22dc91dea560f0dde62ce23c033b6b6 media: dt: bindings: media: Document data lane numbering without lane reordering [ 3728.319709] usbcore: registered new interface driver dvb_usb_af9035 [ 3808.368015] usb 7-6: new high-speed USB device number 2 using ehci-pci [ 3808.519989] usb 7-6: New USB device found, idVendor=0ccd, idProduct=10b2 [ 3808.519992] usb 7-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 3808.519995] usb 7-6: Product: TS Aggregator [ 3808.519997] usb 7-6: Manufacturer: CINERGY TC2 Stick [ 3808.522239] dvb_usb_af9035 7-6:1.0: prechip_version=83 chip_version=01 chip_type=9306 [ 3808.522612] usb 7-6: dvb_usb_v2: found a 'TerraTec Cinergy TC2 Stick' in cold state [ 3808.603993] usb 7-6: firmware: direct-loading firmware dvb-usb-it9303-01.fw [ 3808.603999] usb 7-6: dvb_usb_v2: downloading firmware from file 'dvb-usb-it9303-01.fw' [ 3808.644619] dvb_usb_af9035 7-6:1.0: firmware version=1.4.0.0 [ 3808.644631] usb 7-6: dvb_usb_v2: found a 'TerraTec Cinergy TC2 Stick' in warm state [ 3808.644701] usb 7-6: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer [ 3808.644738] dvbdev: DVB: registering new adapter (TerraTec Cinergy TC2 Stick) [ 3808.862180] i2c i2c-3: Added multiplexed i2c bus 4 [ 3808.862183] si2168 3-0067: Silicon Labs Si2168-B40 successfully identified [ 3808.862186] si2168 3-0067: firmware version: B 4.0.2 [ 3808.862194] usb 7-6: DVB: registering adapter 0 frontend 0 (Silicon Labs Si2168)... [ 3808.865004] si2157 4-0063: Silicon Labs Si2147/2148/2157/2158 successfully attached [ 3808.885630] usb 7-6: dvb_usb_v2: 'TerraTec Cinergy TC2 Stick' successfully initialized and connected [ 3818.832270] si2168 3-0067: firmware: direct-loading firmware dvb-demod-si2168-b40-01.fw [ 3818.832273] si2168 3-0067: downloading firmware from file 'dvb-demod-si2168-b40-01.fw' [ 3819.397099] si2168 3-0067: firmware version: B 4.0.11 [ 3819.409474] si2157 4-0063: found a 'Silicon Labs Si2147-A30' [ 3819.462976] si2157 4-0063: firmware version: 3.0.5 [ 3819.462997] usb 7-6: DVB: adapter 0 frontend 0 frequency 0 out of range (42000000..870000000) Regards, Alois