Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3583208yba; Mon, 8 Apr 2019 23:55:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwO0v2evql9+yA3cEY80APgkXZPtFMwRYjqosirFLmdGlysyvKQzXF3X/dooUGyqGK+1T56 X-Received: by 2002:a17:902:8604:: with SMTP id f4mr24682907plo.245.1554792952481; Mon, 08 Apr 2019 23:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554792952; cv=none; d=google.com; s=arc-20160816; b=Wf+igEqGjKsJMUq7Mm0P8q30ERIxShi9jA0Rv7dE+Rtu/K1pg3tQLXmU/FXhF06cLA ha6pAnXfgVNhapItUJZNWmJy3dhH9tRsM9vcfIXiqlUqabv+Ap4S+EXNOobJwv75heY0 jmBQr6g46Ymxwfoe861MLtqapdn2VGCPOJTC5415CR9+wcc9zHWJUlpQy6lmAxXVxLf9 f9LbyHcjfFvuL02Vq9KZYRMdsnWj/61OICxR//K18fE3ssKa2Z5hDb0UrUPfZZyGFyi8 btXzzlRvR6QDRra17CMQgrIG/i4vOYckI4M8CSLIDXM21JZ8XALApsUY47Wl6w60mkqv 5j0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=TCxsJu8jJLNuqFWDDPsDTNQq1nYmaUTPKMfLoApayNc=; b=BwJJH4jjgA+9GRM29p787dFd+FxNJRN922P+kfdoojxJ6DgNHBwcfBzzoNriokEWhi qNNj8Ewz4eSppedH7ekpy/Klxur1Eiu3iRsrzdSWiIxWlHRo3cTGg7jaHbRhq9VgHwNu QCfwpcMk/Q8PTOAssiavRSAS7YaLrVwenrlMFAqAdHRXz7gJ5Q+3tOB5smJJjJ9TFbVG 2nKr0EIXYjEx+FFPi8vGW6wzih//5pkTAbTOBKV7HeoJCt+evf1lnt+xanGsGBlnv7La 9Lwy/E9gbubJfzu4HFYOK5p0t8CwuQGPSL/4gb3tg+iHB+4c8SK/8G/gTqwKxwadJ5pP KYQg== 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 gn11si28155476plb.205.2019.04.08.23.55.37; Mon, 08 Apr 2019 23:55:52 -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 S1726620AbfDIGxp (ORCPT + 99 others); Tue, 9 Apr 2019 02:53:45 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:57695 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726559AbfDIGxj (ORCPT ); Tue, 9 Apr 2019 02:53:39 -0400 X-UUID: c1f6707d38b2488585f65a464e4474d4-20190409 X-UUID: c1f6707d38b2488585f65a464e4474d4-20190409 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1068638299; Tue, 09 Apr 2019 14:53:22 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 9 Apr 2019 14:53:20 +0800 Received: from mszsdclx1067.gcn.mediatek.inc (172.27.4.253) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 9 Apr 2019 14:53:19 +0800 From: wangyan wang To: Michael Turquette , Stephen Boyd , CK Hu CC: wangyan wang , Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter , chunhui dai , Colin Ian King , Sean Wang , Ryder Lee , , , , , , Subject: [PATCH V10 3/5] drm/mediatek: using new factor for tvdpll in MT2701 Date: Tue, 9 Apr 2019 14:53:05 +0800 Message-ID: <20190409065307.82280-4-wangyan.wang@mediatek.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190409065307.82280-1-wangyan.wang@mediatek.com> References: <20190409065307.82280-1-wangyan.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Test: search ok 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 = { -- 2.14.1