Received: by 10.223.185.116 with SMTP id b49csp5034235wrg; Wed, 7 Mar 2018 05:26:02 -0800 (PST) X-Google-Smtp-Source: AG47ELu1LNi7/sc3R5X1CBd9Slk1F6UNv088JpuJsgnwaJr1Im0dPHwcHuzRM/Dmz/DIAaUWYgzv X-Received: by 10.99.117.26 with SMTP id q26mr17670837pgc.46.1520429162456; Wed, 07 Mar 2018 05:26:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520429162; cv=none; d=google.com; s=arc-20160816; b=iCqCt1Qd1Lftn+qq3GesVZEf2Kbdk9bomALKqv7YnnXkwtIXmtlIX1BmUQNEsBdzOz wCl7iv3+hkBRi/zDvsLOsUJWzIo9z3T0v8V2i6WaP2O9cnvK/oExKrM6r42n49mY5c1X l3pToi38MsYj5odxDf5AAino6BZIo4YFfo7TxnHGVDMyVDKiUYHMi0nGMlM8/sZGj+W3 xagXDtc1Sq4B4nI1mQQugAXuzne2YzW341z5DfYjRF21mJcGH1iTYu7E/owcSd0i9j3w H8PSSo16A+siR/Z4vVFmiMuBqHUkyIt9h23cYYQ0lhgDBAGlejibswu+26dhofkn8djx TCxA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=A1YrWYpVpeYvsf3xsKQYbNET6fX7qUDWCKR0WjzNgBE=; b=DnHme4mpD8nDFbcNDMrfl+cMD+ExCgjbTZn1QOz7vwI5n96LqVObKOec96ke+xPswg gtvm14pDlW/a/g8Xmy33F25/JKlu6qQ+gRk8+ij8V136HHZlC80s0J3aw5wfaU4GYpxW T/j9k+rjc7GKnBLo37SdqyyozNqkZcPn+31RPFytaBIyjKOlFPrNwWQUV72EPEhviZbD AA64wHyqI7tMi8sWxStgKvX1iWHfYEasNbbadlUcdc3EaJECGLcYjQCKB5r2AD2yu6ct V+BSTTSCiyjJuN9CZzdEeV5BotDvHOgFBtrCvsE3T6Jw3vUvKQxfOeVp+XLs8aFQ8crl AYyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kapsi.fi header.s=20161220 header.b=lGuLzNts; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e89-v6si13086991plb.557.2018.03.07.05.25.47; Wed, 07 Mar 2018 05:26:02 -0800 (PST) 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=@kapsi.fi header.s=20161220 header.b=lGuLzNts; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933415AbeCGNYA (ORCPT + 99 others); Wed, 7 Mar 2018 08:24:00 -0500 Received: from mail.kapsi.fi ([91.232.154.25]:47527 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754415AbeCGNXz (ORCPT ); Wed, 7 Mar 2018 08:23:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=A1YrWYpVpeYvsf3xsKQYbNET6fX7qUDWCKR0WjzNgBE=; b=lGuLzNts6ri5bcLHAtjCJKjLNFJ/7/k4OO77uvHS94PjeTdaK79+qt/cVTfmBoAsKHQkga7p08/nD8/coH3TEXSuQ2/6b39kaywa+fzAC5+hLmde8GmBQ9Q2PKOa73BTae+jYNHOp+oyRpKz71KYAYgqVTxjHwPoVtDd6Ow03H0eb7WJXGRIySzJEPCb8Oy1LXfw+TEo+vyFspgLjA6PO6bU6sCsPnwF5s+Ej6E9QAvOYc6So4zI6AjH9azZJqiwongnCS0sXDDf9GN68SVlonpVpZRAphaAscx5dgdtw8SFDWG9YeLHqKwMyMZJqC8lcItgAWwSZxahm3BVxt/Bpw==; Received: from mobile-access-6df048-240.dhcp.inet.fi ([109.240.72.240] helo=localhost.localdomain) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1etZ2v-0000UV-0W; Wed, 07 Mar 2018 15:23:53 +0200 Subject: Re: [PATCH] Fix for hanging si2168 in PCTV 292e, making the code match To: Mauro Carvalho Chehab , Nigel Kettlewell Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <59C10A00.2070000@googlemail.com> <20171214124841.7943b325@vento.lan> From: Antti Palosaari Message-ID: Date: Wed, 7 Mar 2018 15:23:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20171214124841.7943b325@vento.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 109.240.72.240 X-SA-Exim-Mail-From: crope@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/14/2017 04:48 PM, Mauro Carvalho Chehab wrote: > Em Tue, 19 Sep 2017 13:13:52 +0100 > Nigel Kettlewell escreveu: > >> [re-sending as plain text] >> >> Fix for hanging si2168 in PCTV 292e USB, making the code match the comment. >> >> Using firmware v4.0.11 the 292e would work once and then hang on >> subsequent attempts to view DVB channels, until physically unplugged and >> plugged back in. >> >> With this patch, the warm state is reset for v4.0.11 and it appears to >> work both on the first attempt and on subsequent attempts. It is comment which is wrong. With firmware 4.0.11 it works well without need of download it every time. But firmware 4.0.19 needs to be downloaded every time after device is put to sleep. Probably your issue is coming from some other reason. >> >> (Patch basis Linux 4.11.9 f82a53b87594f460f2dd9983eeb851a5840e8df8) > > Patch is missing a Signed-off-by. See: > https://elinux.org/Developer_Certificate_Of_Origin). > > >> >> --- >> drivers/media/dvb-frontends/si2168.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/media/dvb-frontends/si2168.c >> b/drivers/media/dvb-frontends/si2168.c >> index 680ba06..523acd1 100644 >> --- a/drivers/media/dvb-frontends/si2168.c >> +++ b/drivers/media/dvb-frontends/si2168.c >> @@ -582,7 +582,7 @@ static int si2168_sleep(struct dvb_frontend *fe) >> dev->active = false; >> >> /* Firmware B 4.0-11 or later loses warm state during sleep */ >> - if (dev->version > ('B' << 24 | 4 << 16 | 0 << 8 | 11 << 0)) >> + if (dev->version >= ('B' << 24 | 4 << 16 | 0 << 8 | 11 << 0)) >> dev->warm = false; >> >> memcpy(cmd.args, "\x13", 1); >> -- >> 2.9.4 >> > > > > Thanks, > Mauro > regards Antti -- http://palosaari.fi/