Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp244509imm; Tue, 17 Jul 2018 18:08:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc4BwYGmfor1opWOTkRylYedym+4s6SiWPAZUKT3/In4S03mrcJhBkGifv+LaUGghQb407e X-Received: by 2002:a62:ac12:: with SMTP id v18-v6mr2942720pfe.126.1531876135646; Tue, 17 Jul 2018 18:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531876135; cv=none; d=google.com; s=arc-20160816; b=wv++CKTU6EQyWRsbsDQsezTEtyhOVis/hvcnTJYTjQ3kAzY+H0Y6PDOcLyKIkt5yel 6YPlAIx53yHrOcUrRWTtXPoelNmTQ0JOU3Q1HJ5dJwr0et9gzKlj5F9eXzg386Zz7jGF 59Ds2G01Oouni/m4q9TlzipAOk+4QV+g47CzafiCqU/wUTQ2kMZd7nj78RcLxR65R8Wa OLJfXe1Na7840DzdXktlJnGiaGe5jQb0bqlHiLNQqefS8pYolO2xx1/KLYIVTPn09H7E ZVpmxmxTABfUtfAWRx8qSwQZ0mgxDoiUmiVm93hCprIzxWoToau6BxA/v4E49InJVqn0 WsGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Ei4pIA3jFHVIHfv4IPU2bnHg+ysAXwWQMcSkE4QkjH4=; b=gWmVukd9lJNr94Q36iNkWtqii78ZK6o6WydAQaSWzHc955k6ayit3OSQNj7JVquvHs Z9xTTOaqlvmDpf8Zc/XPEQOFETo/+S6HYkuSkt5S3HjiTsE0H/wI+//WHbcXByKB1aRc vgWgBeYVzwUQWkUg2p3MB3WpDRHJ/UmwIodIcmCTEUTLDZ3hdCx1kvt9nvQp/5FU5/hd X7IFTeMRPd6m9fUaA9l750b1CHrRCF4R3gb0ZTIbQl0prbWshBWXcnubaR2cpWMnJYIv AEhL521QKDQbrFYA6golauIoxn2/YCKjuFpLEiaV5ziIX1CgLI2lfJaMVF9OPtIRTR3N GpSw== ARC-Authentication-Results: i=1; mx.google.com; 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 f21-v6si2228975plj.180.2018.07.17.18.08.40; Tue, 17 Jul 2018 18:08:55 -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; 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 S1731596AbeGRBnL (ORCPT + 99 others); Tue, 17 Jul 2018 21:43:11 -0400 Received: from mx.socionext.com ([202.248.49.38]:16378 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731151AbeGRBnL (ORCPT ); Tue, 17 Jul 2018 21:43:11 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 18 Jul 2018 10:07:55 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 39DAF60034; Wed, 18 Jul 2018 10:07:55 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Wed, 18 Jul 2018 10:07:55 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id 9D3A04039E; Wed, 18 Jul 2018 10:07:54 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id 6D653120424; Wed, 18 Jul 2018 10:07:54 +0900 (JST) From: Katsuhiro Suzuki To: Mauro Carvalho Chehab , linux-media@vger.kernel.org Cc: Masami Hiramatsu , Jassi Brar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Katsuhiro Suzuki Subject: [RESEND PATCH] media: helene: fix xtal frequency setting at power on Date: Wed, 18 Jul 2018 10:07:53 +0900 Message-Id: <20180718010753.18717-1-suzuki.katsuhiro@socionext.com> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes crystal frequency setting when power on this device. Signed-off-by: Katsuhiro Suzuki Acked-by: Abylay Ospan --- Changes from before: - Add Abylay's Ack --- drivers/media/dvb-frontends/helene.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/helene.c b/drivers/media/dvb-frontends/helene.c index 0a4f312c4368..8fcf7a00782a 100644 --- a/drivers/media/dvb-frontends/helene.c +++ b/drivers/media/dvb-frontends/helene.c @@ -924,7 +924,10 @@ static int helene_x_pon(struct helene_priv *priv) helene_write_regs(priv, 0x99, cdata, sizeof(cdata)); /* 0x81 - 0x94 */ - data[0] = 0x18; /* xtal 24 MHz */ + if (priv->xtal == SONY_HELENE_XTAL_16000) + data[0] = 0x10; /* xtal 16 MHz */ + else + data[0] = 0x18; /* xtal 24 MHz */ data[1] = (uint8_t)(0x80 | (0x04 & 0x1F)); /* 4 x 25 = 100uA */ data[2] = (uint8_t)(0x80 | (0x26 & 0x7F)); /* 38 x 0.25 = 9.5pF */ data[3] = 0x80; /* REFOUT signal output 500mVpp */ -- 2.17.0