Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2251170ybp; Thu, 10 Oct 2019 04:45:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzodXiumQndew71POd78WE+15AEKk9GYF4NazDU/awyz7UMqxIkICF13alAjMamtPZl4L6P X-Received: by 2002:a17:906:b318:: with SMTP id n24mr7432757ejz.248.1570707945552; Thu, 10 Oct 2019 04:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570707945; cv=none; d=google.com; s=arc-20160816; b=hPTbUTPNWa1N0jriCYtzivnVaeRdcPndwbheHEps7E9msCO8ikfbB/2rSkcVqAemyp k68fXq48SR/iwzbWBltydNRJyyFGfdySDZFHhWegH1QMRaW44Jh5+X9+XJcnRIrlCMtI TMAXDXV1qpdEw9DwmkIvJ1VUN7C2wA65stmcIJQSxvOaS3gO50PdBnf2v2we8pEll0Mw QCgUcjLYj/9jSm6qZSKI944rwa8Gx8IGMBqyDF2aOy1/1mNqsZd2WAnc3Mikge0Rjwau EgxRKpAj9ptbzfxAlDWt+Ahm8WFoQkeeV/DP2/dPCiUFEJDaM5p81ayaBUZZfRb9mhU8 mDUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1IeTS6OtaGl5r6kl4QmygEE+/0UdRFkwKzXgXVrqazc=; b=a4XogOLkY1WoYJ3u4OP4Hbf8A5P9iujmdiYMqp5gGrDA453uDCS7g6m1Xb9viLdMFM ek6C8MvaEA9ceTompVxQtThNGNAwA67XYlB/AX0PfM7K8W+X6/6T79ycZTx2qUK6/4pz gQDtyQIjSCP+LEnvxORHEvjZtEv0SfNwNJ9Ch9OHbB9EQh25vapv6eSXG4qxwdRDMNPu rWy288vSiDWuWc9ictQzWlxzKjuNov2uvSnCPHX0veAbBsDU2xGWIG3dzBZSVXS1ygA0 suiBra9oF/XGmVYJMgEgibP4L49GXU6g5Kuqa2cNVDiakfWOligZVojkXUF9fwPsytK3 VXfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gF6XnRs9; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e48si3677783eda.130.2019.10.10.04.45.22; Thu, 10 Oct 2019 04:45:45 -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=pass header.i=@gmail.com header.s=20161025 header.b=gF6XnRs9; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728912AbfJJLos (ORCPT + 99 others); Thu, 10 Oct 2019 07:44:48 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:44496 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726523AbfJJLor (ORCPT ); Thu, 10 Oct 2019 07:44:47 -0400 Received: by mail-ed1-f68.google.com with SMTP id r16so5135737edq.11; Thu, 10 Oct 2019 04:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1IeTS6OtaGl5r6kl4QmygEE+/0UdRFkwKzXgXVrqazc=; b=gF6XnRs9Zto3s9HYwDC5Zil9rW4OO51oO/A+LSgFP1z6gcfXlBWGz495Nd8jf0NnPP P6Yw1LlLJDbUDmHfcjim696KDyol7o1w8DHWW8de8pvTZTmuSf6WaHGunlfI1KO/tlCH Vq7PaVEB3hotxLb8O4ZUgoGgqH4IuBgTOP/Th7U4GEPPUQyuYeu6YH2btN0+nTdi4757 rIOUzqt8i6n0QwkZDbkWaUVvhwzS24kYGrCHLBbht37r0zE06EycLMkTXbMusrBjMbI8 7oTNn93nzr47OvYOdVj+QnM0MNnEd4tDVhlLtGR+mE8KtAhWKmwq8ABJOFtOZ1yJ4FMZ OAEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1IeTS6OtaGl5r6kl4QmygEE+/0UdRFkwKzXgXVrqazc=; b=r4JnBngrxW6DjUedHa8x70irNGcPapHYPspbM0Hm80S/1DKTf1srbAA1ycs7Q9IIjD Qy+1I4+JRwcA+tO3FQmyNYrwv+qYS2J/SRsgajYofWyuBERmUT+SZbZeBukJyNMdPt7N EiLiKrcaAyVCIJVw5s1JdQGGeaZve25618l2qDPI7uBGcdFfDIUDBQacjdcamlrM4wyj ywadtwOv+3FqOt2tw11pWbLD+RWODxBRvsyW+ExGyhq28ACub4HvEyPRs4SPfXfwtC/v E6MQuGOmI4XpHC+HzgdFY8VFe6AZ4rEzYqv0CgCAcWzCcfqJPOubEkVrlNKkaoafkqbR l2ZA== X-Gm-Message-State: APjAAAUrxAuZftlpBPooRJiRIPY+2vRMjCsqYwCV2aDvGnwiQKDUfyPZ t0RWMDrSKOT21NPDYtwcPjU= X-Received: by 2002:a50:9a46:: with SMTP id o64mr7764794edb.191.1570707884368; Thu, 10 Oct 2019 04:44:44 -0700 (PDT) Received: from Limone ([46.114.37.24]) by smtp.gmail.com with ESMTPSA id jo12sm659875ejb.7.2019.10.10.04.44.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 04:44:43 -0700 (PDT) Date: Thu, 10 Oct 2019 13:44:40 +0200 From: Gon Solo To: mchehab+samsung@kernel.org Cc: linux-media@vger.kernel.org, mchehab@infradead.org, jp@jpvw.nl, crope@iki.fi, sean@mess.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] Add support for Logilink VG0022A. Message-ID: <20191010114440.GA7902@Limone> References: <20191010091848.GA2898@Limone> <20191010095103.3803-5-gonsolo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191010095103.3803-5-gonsolo@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > "When the [...] firmware that came with the device is replaced > by a new one, any I2C data received from the tuner will be > replaced by 0xff. > > Probably, the vendor firmware has some patch specifically > designed for this device. So, we can't replace by the generic > firmware. > > The right solution would be to extract the [...] firmware from > the original driver and ask the driver to load the specifically > designed firmware, but, while we don't have that, the next best > solution is to just keep the original firmware at the device." The information in the patch is not totally correct. It is the si2168(!) firmware download that confuses things, not the one for the si2157. The si2157 seems to have no firmware and the problem is that we used to bail out because we didn't recognize the bogus chip id. The following patch corrects this. Signed-off-by: diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index 792667ee5ebc..5a2943e2932b 100644 --- a/drivers/media/usb/dvb-usb-v2/af9035.c +++ b/drivers/media/usb/dvb-usb-v2/af9035.c @@ -1621,17 +1621,20 @@ static int it930x_tuner_attach(struct dvb_usb_adapter *adap) si2157_config.fe = adap->fe[0]; /* - * HACK: The Logilink VG0022A has a bug: when the si2157 + * HACK: The Logilink VG0022A has a bug: When the si2168 * firmware that came with the device is replaced by a new * one, the I2C transfers to the tuner will return just 0xff. * * Probably, the vendor firmware has some patch specifically * designed for this device. So, we can't replace by the * generic firmware. The right solution would be to extract - * the si2157 firmware from the original driver and ask the + * the si2157/68 firmware from the original driver and ask the * driver to load the specifically designed firmware, but, * while we don't have that, the next best solution is to just * keep the original firmware at the device. + * + * Or, the Windows driver includes the same hack and doesn't + * bail out on bogus chip ids. */ if (le16_to_cpu(d->udev->descriptor.idVendor) == USB_VID_DEXATEK && le16_to_cpu(d->udev->descriptor.idProduct) == 0x0100)