Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1494293imm; Wed, 20 Jun 2018 20:10:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLFvl1CTFjz7kYL5/gkYeJ2NVdIuOOcwUhSCW9AVGNDa2MCRi2r9Kf9b3w+craCDcX7N1y+ X-Received: by 2002:a63:b34e:: with SMTP id x14-v6mr21000333pgt.243.1529550599996; Wed, 20 Jun 2018 20:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529550599; cv=none; d=google.com; s=arc-20160816; b=aQ7gwTfyRtrj0N4C9bch3xjLuvsNqjkfpZ9pHstiSwoJpMRmX3Ibr9uJXvH1jeYysC yeytLYTFCAQ0v7IshXG22kxDQzCZKW77QuP+ECxuwpo7z6DS0aLGZH/MbGd0cT2LJZRX cgcEA1EOVnjKdU1OxJQlAvxNYKdZjF6rf0untiEdLDlJqSPsiiTcxlzfxxfOE1IkpXbv 1ZpZV6h/LnNxTjW+pzaCGbl6pEjWlyqQ965H0AwoLIJ1pGO4rW6jyBdgTJOQ/lGwFm6c KOfvCVTcyylvJbx+hsv0Xx5RWmgFdvSmHxHrP9Z9GhVIWV53qE0lizj6tZyhst1axJnX LCkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:arc-authentication-results; bh=sAwVW73cRAGFkzLBvjOoKuC/b6UsWylGj4rt0BaHoIs=; b=LD9wfDwxCnBAQDLhkru1jbLoc6nr325XId45gENUMAHXthCe2aoeMDeVxBMt9gmmXz FQRXzGu2CCgpROuJ7F+BJcWbFU9QEa6vCcQtaqI7cKbqCgd1b8/4vYqwqLeWYpuBtPnD 4C7+vZX8OkZXNo7349PXtPQmZHw8s3kgUnrXW1Kf/CACVm79sMeKxNXAkJWD2A0FDm/O ZkbV8kp9BbT9/ccU4x8l13yuKz8cI7MvhIkAupoUY9GmdaXcpwYQAv11TyROg95sCtD9 8aZROObKhaF3trPHeCmRnDLBRYGTjGib0iDue3rHFIuDsJ0+3zczMyVRC/xJqySooT11 h87Q== 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 a3-v6si4282241pll.412.2018.06.20.20.09.45; Wed, 20 Jun 2018 20:09:59 -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 S932241AbeFUDJI (ORCPT + 99 others); Wed, 20 Jun 2018 23:09:08 -0400 Received: from mx.socionext.com ([202.248.49.38]:40843 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754071AbeFUDJH (ORCPT ); Wed, 20 Jun 2018 23:09:07 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 21 Jun 2018 12:09:06 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 04EB2180237; Thu, 21 Jun 2018 12:09:06 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Thu, 21 Jun 2018 12:09:06 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id 6491940361; Thu, 21 Jun 2018 12:09:05 +0900 (JST) Received: from DESKTOPFLNNJ4T (unknown [10.213.132.95]) by yuzu.css.socionext.com (Postfix) with ESMTP id 3233912013E; Thu, 21 Jun 2018 12:09:05 +0900 (JST) From: "Katsuhiro Suzuki" To: "Abylay Ospan" , "Mauro Carvalho Chehab" , Cc: "Masami Hiramatsu" , "Jassi Brar" , , , =?iso-2022-jp?B?U3V6dWtpLCBLYXRzdWhpcm8vGyRCTmtMWhsoQiAbJEI+IUduGyhC?= References: <20180529010920.20320-1-suzuki.katsuhiro@socionext.com> In-Reply-To: <20180529010920.20320-1-suzuki.katsuhiro@socionext.com> Subject: Re: [RESEND PATCH] media: helene: fix xtal frequency setting at power on Date: Thu, 21 Jun 2018 12:09:01 +0900 Message-ID: <001f01d4090d$34a04310$9de0c930$@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHT9umtSSa4XH16V0CMcjXSHW020qRqK2tg Content-Language: ja x-securitypolicycheck: OK by SHieldMailChecker v2.5.2 x-shieldmailcheckerpolicyversion: POLICY180220 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Mauro, Ping... If I got some mistake, please comment it... Regards, -- Katsuhiro Suzuki > -----Original Message----- > From: Katsuhiro Suzuki > Sent: Tuesday, May 29, 2018 10:09 AM > To: Abylay Ospan ; Mauro Carvalho Chehab > ; linux-media@vger.kernel.org > Cc: Masami Hiramatsu ; Jassi Brar > ; linux-arm-kernel@lists.infradead.org; > linux-kernel@vger.kernel.org; Suzuki, Katsuhiro/鈴木 勝博 > > Subject: [RESEND PATCH] media: helene: fix xtal frequency setting at power on > > 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