Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1847139imm; Wed, 16 May 2018 04:07:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqED1R43htzeeEFfap7JjCdSBr5dc095tJrglLPxXfDTxz/EI8KHeL6JAWX+HUugYg+oNd/ X-Received: by 2002:a17:902:be0e:: with SMTP id r14-v6mr486524pls.158.1526468825596; Wed, 16 May 2018 04:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526468825; cv=none; d=google.com; s=arc-20160816; b=sOrNCmmOYHZGUtBiNy2wL/yEAN0KNMr3R9xVCrb8SDZTTbLFqCPc66pyxLM4DO2l+m Qrh+0BMmbZvPi3ut1RNnQ1g3mPIAlGv0dFBMYGHxqhYqKeNfqWu+ks/b33TeQlCzlYw5 lTDrz+cyD+ouUu4QHSlp0i6IfABTRedsiEHrfxM+vEjqEkcSnb2w1Pc1tdhjZAHr51h/ 6Xt9zNit6BqaOJIDc3fwltBL2gqZ83r64k1ibAaJlsVHso3S7T2O5vPwQUKsFEp/VGUm 5cKiR3szRjw8VslrKfbgLjcYFq7mHOu8581oicu3kEpR1L4awdz1XgKai3HPb/pgiYMD +PMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=vZw8jwFVG4JF8L43ofagy9uLALj6B+RDGR51KwKUgAE=; b=OVPqBoxVKNEU6vjQZ/Ff7ARG20DMHIMkoL1NqwQs7p9AQTGWr8pmxXuipGIc9Qoyoo uHQm+fgrauHNjzHBzJ5WLCJYGu3cH582QHQsuEg5lKG5wBUivblE4vMfD3hA3gQUeR2k JLTXt+ye1xN0qu6+nsQ2SJLDBrA5iZihUXjnHwz87YQHtdEDn+jot1HKh9agrswlbs+/ QCgl9rqewaJHAs3CX6iQFEQREzHjmTMnxqt66uazInQqHHT+NZKizdx44unU6bsm1LG1 lgA0zzBtoU1V0LcwwTAx8AJyOvndPhFi0CjWnJxOkIXG1lypuIvV5m/82iYF/aPQ/4MS SgHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@netup.ru header.s=imap header.b=ZXPJuIQh; 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=fail (p=NONE sp=NONE dis=NONE) header.from=netup.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30-v6si2417926plf.104.2018.05.16.04.06.51; Wed, 16 May 2018 04:07:05 -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=fail header.i=@netup.ru header.s=imap header.b=ZXPJuIQh; 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=fail (p=NONE sp=NONE dis=NONE) header.from=netup.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752479AbeEPLEr (ORCPT + 99 others); Wed, 16 May 2018 07:04:47 -0400 Received: from imap.netup.ru ([77.72.80.14]:60206 "EHLO imap.netup.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbeEPLEp (ORCPT ); Wed, 16 May 2018 07:04:45 -0400 Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by imap.netup.ru (Postfix) with ESMTPSA id 0E93BF820A1; Wed, 16 May 2018 13:57:21 +0300 (MSK) X-DKIM: OpenDKIM Filter v2.6.8 imap.netup.ru 0E93BF820A1 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=netup.ru; s=imap; t=1526468241; bh=y+CdsO8Cy34ujAIQScaLR6F3U+qOFayMOdvVK1OyofA=; h=In-Reply-To:References:From:Date:Subject:To:Cc; b=ZXPJuIQh2B56pcfG/65/r2/pd7LGWjXpU3UwX4xOv9m+84+fTbIpDgizLfojvQVCV xyPFowyLzqV63QrGeye01eRcNw/4T0dRu4Fv3gQ32Yfsuq0SwrJn/Jgl99N64WyqDy 4P8aSKwR5Huow6ourU8jRkdkGHbyatYjpyw7p3F0= Received: by mail-pf0-f177.google.com with SMTP id q22-v6so155861pff.11; Wed, 16 May 2018 03:57:20 -0700 (PDT) X-Gm-Message-State: ALKqPweh9QKZnM5QDoLtWt9SstdeMzghqaAHPwun+Xdpbv8/wb+kLLcs iSkPPsKvKbsBzj9RI08HeQXh4sm8bT7NZ2+NO5g= X-Received: by 2002:a65:5d0f:: with SMTP id e15-v6mr328465pgr.119.1526468239037; Wed, 16 May 2018 03:57:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:8598:0:0:0:0 with HTTP; Wed, 16 May 2018 03:56:58 -0700 (PDT) In-Reply-To: <20180516084120.28674-1-suzuki.katsuhiro@socionext.com> References: <20180516084120.28674-1-suzuki.katsuhiro@socionext.com> From: Abylay Ospan Date: Wed, 16 May 2018 06:56:58 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] media: helene: fix xtal frequency setting at power on To: Katsuhiro Suzuki Cc: Mauro Carvalho Chehab , linux-media , Masami Hiramatsu , Jassi Brar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-by: Abylay Ospan 2018-05-16 4:41 GMT-04:00 Katsuhiro Suzuki : > This patch fixes crystal frequency setting when power on this device. > > Signed-off-by: Katsuhiro Suzuki > --- > 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 > -- Abylay Ospan, NetUP Inc. http://www.netup.tv