Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2493385yba; Sun, 7 Apr 2019 20:56:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZtfxfibwr03GumVGOyVU46axMS08p2NVuECxpLzi0KkKxgwer9EiPfoTtpqhj6uE80hqO X-Received: by 2002:a62:1318:: with SMTP id b24mr27069877pfj.201.1554695767005; Sun, 07 Apr 2019 20:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554695766; cv=none; d=google.com; s=arc-20160816; b=lGT17Rrykeuxa6c2NAR7lmxx/pa/7jNyUW/9X45Rqqnx5xfVjg/DdM9dHGPb7irEp3 4NwOQFMHSRjYk09AcCqtAqD+TNeQ0wvIDj+JCADg4Xe4JbidaRauPAr4Gcle7BfFFISA h6oiXaqd7BbfjAHUe+MAffer2/obRLP+qAw8oHZhSJR2OegHB2R4RO0qZLEc+WIAdO/P /a0uiezJFM4nxbCOfgt5v6wMcikr+cmw+b6pm46HmM7rjAKYQrxiLBxtat0WXnkQCa62 h2ZJ3LOG3hRJnpbkvcB39Tm6vnylBs1fpijTIvNtzYLYuv3lFhsUa31QxVA1e2qaWy+S SN4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=+0lw0eGo70f2c8iFcv/8k55ZFYIVsK/kU6vhvt01kPw=; b=TcQfzAClNysGNSWFp5iXKLqD1Z7zcgotwTqwrYpaFXJ/gmPvqpK0XMg0nnZHJZ031n wMjZ1mNPx2MbZkFUwSLc1GjgQ1FX3WtgQwuBJV+ylio0vLHjHr5b9s0ygq95pRXb9zga /K+TZpHQ7cCsaRjFpJhbR/ocRfg/Tj4j9J6V81iufKPc8JZvgjuQozLt5IMbmDHwSOXd OmajDSmhA7Oqj6UPurmlThwK4qoM9ATHvzA6l5doYrHO8FXd1AzBwBBQyUEArnNXzLWH w9W/LAsse0fLweH9SiajGpIe1ThsSzajnqlU2s+SdkNP6gsY+3RlnlztOeXoFmJRMgdd E3DA== 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 w67si27215562pfb.20.2019.04.07.20.55.51; Sun, 07 Apr 2019 20:56:06 -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 S1726577AbfDHDy7 (ORCPT + 99 others); Sun, 7 Apr 2019 23:54:59 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:20569 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726464AbfDHDy6 (ORCPT ); Sun, 7 Apr 2019 23:54:58 -0400 X-UUID: a8c593d377d1474b952a3f3ff46f9f96-20190408 X-UUID: a8c593d377d1474b952a3f3ff46f9f96-20190408 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1040451129; Mon, 08 Apr 2019 11:54:49 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 8 Apr 2019 11:54:48 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 8 Apr 2019 11:54:42 +0800 Message-ID: <1554695682.25248.2.camel@mtksdaap41> Subject: Re: [PATCH V8 3/5] drm/mediatek: using new factor for tvdpll in MT2701 From: CK Hu To: wangyan wang CC: Michael Turquette , Stephen Boyd , Matthias Brugger , "Philipp Zabel" , David Airlie , "Daniel Vetter" , chunhui dai , "Colin Ian King" , Sean Wang , "Ryder Lee" , , , , , , Date: Mon, 8 Apr 2019 11:54:42 +0800 In-Reply-To: <20190402093605.82004-4-wangyan.wang@mediatek.com> References: <20190402093605.82004-1-wangyan.wang@mediatek.com> <20190402093605.82004-4-wangyan.wang@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Wangyan: On Tue, 2019-04-02 at 17:36 +0800, wangyan wang wrote: > From: Wangyan Wang > > This is the second step to make MT2701 HDMI stable. > The factor depends on the divider of DPI in MT2701, therefore, > we should fix this factor to the right and new one. Reviewed-by: CK Hu > > Signed-off-by: Wangyan Wang > --- > drivers/gpu/drm/mediatek/mtk_dpi.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c > index 69c6e42dad6b..4a2f4a650494 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dpi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c > @@ -662,13 +662,11 @@ static unsigned int mt8173_calculate_factor(int clock) > static unsigned int mt2701_calculate_factor(int clock) > { > if (clock <= 64000) > - return 16; > - else if (clock <= 128000) > - return 8; > - else if (clock <= 256000) > return 4; > - else > + else if (clock <= 128000) > return 2; > + else > + return 1; > } > > static const struct mtk_dpi_conf mt8173_conf = {