Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp255243ybp; Thu, 3 Oct 2019 13:06:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0jUqxlFYnnJOfauY4rvstP7CG53fwWznFyWoiNYmlcmJZJt3W8VnjyWnbTJRFQBSI93M9 X-Received: by 2002:a50:d98a:: with SMTP id w10mr11461479edj.276.1570133190285; Thu, 03 Oct 2019 13:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570133190; cv=none; d=google.com; s=arc-20160816; b=PXdOB4DKGUkfIuD0kvYJo4+UdD/zlcaZkjB+iXG3xB2QrLOzGDrAIdpABEPRYKq/Hs dtrLvIq9lUpVeaNJJCfgz9kuGiY6QUMJG0F7S+MSL5lSvFbTb/JGqwDR0CzGew6fhVpR JU3VO59N8TmCVmsbuWakjc+ehX30Z7T7yE5L+s0Jemm+HnZ276VN6NLCgncCectUzgEU IZOUVMcZhD00uFKybRyN2viaStg6Vjinie74KfhFeiB+a8mFjSHR07BfkkAC4ZFi/kG9 OEE2QevgZducH/WlPooC1K34nz5vO1RceyXiLc0RL+OM/CZqUf2KkqPlYyzT7hr9Pcle P1rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=z1XgSOD9JUAI9XDkqQ6D+Ysfh47QMU7fl9qU7PgVOQ0=; b=QxoohSJKEfr/2+5v4vHDGx0bEuOGsCR0GDKjash556IsYF986F8Jnp7M8N1aK2mUft A3D4YZ/i10B85Y11TGYkX9BzwiiFzKAS6oEP3+GGF5D8GkVTqslmlL2sBjfwG7E8Jt6T KxbsFXqVzpiU+a7n4olwm5TE5X6Nf091fe2WH4OeJ+Zoi6C4O/nF8rVKN1/n1fs5L7br sWNxd3PFNry/kK68oSf8sfRQr6zFhLKb/NTWrX8apmieppLS84dNOVDdK8oWLQrUcKvw dLb8vtn9i4XTF9znpiWg1eHlx6Zqi2TGSvClJofia6Cgx4DuIo93ji0ToIf6v8VS50nf jdFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tFvV6H25; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b58si2214324edc.97.2019.10.03.13.06.05; Thu, 03 Oct 2019 13:06:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tFvV6H25; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388013AbfJCUDh (ORCPT + 99 others); Thu, 3 Oct 2019 16:03:37 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47496 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731089AbfJCUDg (ORCPT ); Thu, 3 Oct 2019 16:03:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=z1XgSOD9JUAI9XDkqQ6D+Ysfh47QMU7fl9qU7PgVOQ0=; b=tFvV6H25hxwBagX4z6u5oU9N2 BAIgMAeCiNI9ZuhPWLU15oYPeU6gHt41w60RAOEjCWgHbZugkd9d29b2qN6Pzyi3pE05ZYQo3qAIp WNp9GzrnbusegdRfzDJ+87KrD/l2Qegb+2QR7S2ZjnHtecdY8MWe8mabojw0ILDe+G40bjKuPQrj9 VMlO6QVnvsc0ndDlIt19X/IuLxEWHy1THgeANhU7pVPQwU+XRnCnyO5QjuIP800CCdyE5JdIHEg4W 2cYWqlVdns14+ss2LvZOIYPPhBwOFTfbip5GNFg7cF0E7Mte7IO4mntJxEk5sHotd3n5HNUdptAPb sZ09+2ZEw==; Received: from 177.133.68.49.dynamic.adsl.gvt.net.br ([177.133.68.49] helo=coco.lan) by bombadil.infradead.org with esmtpsa (Exim 4.92.2 #3 (Red Hat Linux)) id 1iG7K1-00036T-EB; Thu, 03 Oct 2019 20:03:33 +0000 Date: Thu, 3 Oct 2019 17:03:29 -0300 From: Mauro Carvalho Chehab To: Gonsolo Cc: JP , crope@iki.fi, Sean Young , linux-media@vger.kernel.org, Linux Kernel Subject: Re: [PATCH] si2157: Add support for Logilink VG0022A. Message-ID: <20191003170329.3624f7f2@coco.lan> In-Reply-To: References: <29ab2e43-4374-a3ea-6ae1-a4267867eaa4@jpvw.nl> <20191002154922.7f1cfc76@coco.lan> <20191003080539.2b13c03b@coco.lan> <20191003120238.75811da6@coco.lan> <20191003160336.GA5125@Limone> <20191003130909.01d29b77@coco.lan> <20191003162326.GA2727@Limone> <20191003144225.0137bf6c@coco.lan> <20191003183200.GA2631@Limone> <20191003163914.7c384d36@coco.lan> <20191003164426.6da8538f@coco.lan> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, 3 Oct 2019 21:51:35 +0200 Gonsolo escreveu: > > 1) The firmware file is likely at the Windows driver for this device > > (probably using a different format). It should be possible to get > > it from there. > > If you tell me how I'm willing to do this. :) I don't know. I was not the one that extracted the firmware. I guess Antti did it. I suspect that there are some comments about that in the past at the ML. seek at lore.kernel.org. > > > 2) Another possibility would be to add a way to tell the si2168 driver > > to not try to load a firmware, using the original one. That would > > require adding a field at si2168_config to allow signalizing to it > > that it should not try to load a firmware file, and add a quirk at > > the af9035 that would set such flag for Logilink VG0022A. > > I don't get this. Which firmware, si2168 or si2157? The one that it is causing the problem. If I understood well, the culprit was the si2168 firmware. > I'm still for option 3: If there is a bogus chip revision number it's > likely the VG0022A and we can safely set fw to NULL, in which case > everything works. > All already working devices will continue to work as before. > With a low probability there are other devices that will return 0xffff > but a) they didn't work until now and b) they receive a clear message > that they return bogus numbers and this works just for the VG0022A, in > which case this hardware can be tested. > At last, *my* VG0022A will work without a custom kernel which I'm a > big fan of. :)) > > Are there any counterarguments except that it is not the cleanest > solution in the universe? ;) That's a really bad solution. Returning 0xff is what happens when things go wrong during I2C transfers. Several problems can cause it, including device misfunction. Every time someone comes with a patch trying to ignore it, things go sideways for other devices (existing or future ones). Ignoring errors is always a bad idea. Also, it is a very bad idea to load a firmware that it is not compatible with a device. There are even cases of devices that were burned due to that[1]. [1] XCeive has two versions of 3028/2028 chipsets. One with a "normal power" and a "low power" version. If the firmware for the "normal power" (version 2.7) is used at the "low power" chip (with requires version 3.6), it makes the chipset hotter and reduces a lot the lifetime of the tuner. Thanks, Mauro