Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3471693imm; Sun, 1 Jul 2018 22:53:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd3BlwTZp2Y5mZRF5BhXWhwEtC6gFUX1sCognoLgs9ky4NnMMfdirEl6Jd+hcmp66XPFOv2 X-Received: by 2002:a62:c8a:: with SMTP id 10-v6mr23899095pfm.27.1530510818279; Sun, 01 Jul 2018 22:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530510818; cv=none; d=google.com; s=arc-20160816; b=HCIBx0WEhA2WwmLmKlctfwJJi9bnqZU52VXspP8rSjmaSKah8WAhQk8Jbh0KF2/qb4 iOsRKgvJxXJFYELlJS3TmMz0x0xqDh8z/3cDQL2o89fM3OhG41fZEOrIir8F6REIvm5W oie62TuUedmzYLHO+2szBqO5GN4DIA+XteF1UmbSRwq3zqkLan3mHGUaRquRJu5EHaiL d+4mDARkijYxJbTqSF/208bT7Td0kJ+d560WWtbROCdUI2Q9CcZFqmvoo7Cx8QvJkwZA BoV1GgTZ+yb6BonRNkgPU9i/qBwv6fWtiy5gYYVXb2hO2jf2l1g72eKQmcLJiv+M3+al WQlA== 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=OQJjdwxWhRRA6eEZchMOrXluZhPba28wR3jFumy1cq+4LJgdeQ2YzxmMJi7mD9Hvq4 OLGJOehimmlf6QyOcNiMcZB4N/tIrTTORQVs1azFYldoeXe2NvGdcOp7rYUOIl+dTkhy Oo1RhL0/GJv/cGqUAxAj+n7iQzCc8YYE5ajIPASk7YMmZMsa9CbIrP8ZyGG22ctaABZK 63P/JDWCB051CXpo/cuCYnV8KMBmpJsM7pKMAmdm/P0YpsqxSnoqBvymLGHNGTKciecd X4vE0/UlCX7CwQ5kUc6NRfbGJNJpKCE+7WsJ+RPyHYF3vE4+edmJKrn49tWtpU0ZH8/0 wH5A== 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 r23-v6si4421231pgk.582.2018.07.01.22.53.23; Sun, 01 Jul 2018 22:53:38 -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 S1753180AbeGBFMA (ORCPT + 99 others); Mon, 2 Jul 2018 01:12:00 -0400 Received: from mx.socionext.com ([202.248.49.38]:13256 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751557AbeGBFL4 (ORCPT ); Mon, 2 Jul 2018 01:11:56 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 02 Jul 2018 14:11:54 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id E0F9F60034; Mon, 2 Jul 2018 14:11:54 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Mon, 2 Jul 2018 14:11:54 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id 60BC7403C7; Mon, 2 Jul 2018 14:11:54 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id 2D118120141; Mon, 2 Jul 2018 14:11:54 +0900 (JST) From: Katsuhiro Suzuki To: Mauro Carvalho Chehab , linux-media@vger.kernel.org Cc: Sumit Semwal , 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: Mon, 2 Jul 2018 14:11:47 +0900 Message-Id: <20180702051147.21858-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