From patchwork Sat Dec 28 17:00:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 3414191 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ED55CC02DC for ; Sat, 28 Dec 2013 17:01:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C6742011B for ; Sat, 28 Dec 2013 17:01:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 44AE1200FF for ; Sat, 28 Dec 2013 17:01:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755380Ab3L1RAv (ORCPT ); Sat, 28 Dec 2013 12:00:51 -0500 Received: from mail-we0-f176.google.com ([74.125.82.176]:42624 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755301Ab3L1RAu (ORCPT ); Sat, 28 Dec 2013 12:00:50 -0500 Received: by mail-we0-f176.google.com with SMTP id p61so8873517wes.21 for ; Sat, 28 Dec 2013 09:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:content-type:mime-version :content-transfer-encoding; bh=YqvLZFnuCR/DTbHrgWnn1VU88+7n3sgGSfS9Mp3xB7s=; b=BEQTbHIlqjXeBKb52Qc0PYyMEZlGSm5akhGRhJm5olF5haNU8/Dz3vRxE2zJzM9enQ slhd0/yYesd6hlOm4gqNtb3skVCDmNEPLSegnvZRC0VsPRA8HYI2inkq0mbnqaY37Paq XelAqXTNCccHP8cPqYo1EKR6gemR7XmUHgkRAJ/uspE9F5bMLifOX+3yYbn2GkedLhDo 0+YggAoYYpw9bnmPcUw2oE1hNa01oAkxhGOqStlz2OujTgSRnMU6vNfKIGYv5EbHciv+ zpS4ZK3U7iIVtKgpnYqZO9O7Gdnj7I1qm96hBtdCjbgW/+jc2Egiwkwo+kEcZ2KwO5cs rPUQ== X-Received: by 10.180.189.6 with SMTP id ge6mr37596299wic.1.1388250047872; Sat, 28 Dec 2013 09:00:47 -0800 (PST) Received: from [192.168.1.100] (188.29.109.137.threembb.co.uk. [188.29.109.137]) by mx.google.com with ESMTPSA id dd3sm21794713wjb.9.2013.12.28.09.00.46 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sat, 28 Dec 2013 09:00:47 -0800 (PST) Message-ID: <1388250040.5893.1.camel@canaries32-MCP7A> Subject: [PATCH 1/3] m88rs2000: correct read status lock value. From: Malcolm Priestley To: linux-media@vger.kernel.org Date: Sat, 28 Dec 2013 17:00:40 +0000 X-Mailer: Evolution 3.10.1-2ubuntu2 Mime-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The correct lock values is when bits of the value 0xee are set. Signed-off-by: Malcolm Priestley --- drivers/media/dvb-frontends/m88rs2000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/m88rs2000.c b/drivers/media/dvb-frontends/m88rs2000.c index 02699c1..f9d04db 100644 --- a/drivers/media/dvb-frontends/m88rs2000.c +++ b/drivers/media/dvb-frontends/m88rs2000.c @@ -469,7 +469,7 @@ static int m88rs2000_read_status(struct dvb_frontend *fe, fe_status_t *status) *status = 0; - if ((reg & 0x7) == 0x7) { + if ((reg & 0xee) == 0xee) { *status = FE_HAS_CARRIER | FE_HAS_SIGNAL | FE_HAS_VITERBI | FE_HAS_SYNC | FE_HAS_LOCK; if (state->config->set_ts_params) @@ -677,7 +677,7 @@ static int m88rs2000_set_frontend(struct dvb_frontend *fe) for (i = 0; i < 25; i++) { reg = m88rs2000_readreg(state, 0x8c); - if ((reg & 0x7) == 0x7) { + if ((reg & 0xee) == 0xee) { status = FE_HAS_LOCK; break; }