Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1119680yba; Tue, 2 Apr 2019 02:43:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7KzEHzGpxbhIbacL94XovP35M23QyOgWoWd2ATrV1RkQwDarGnSteQ6tQkAnbABYGrQNb X-Received: by 2002:a17:902:362:: with SMTP id 89mr4433569pld.172.1554198181198; Tue, 02 Apr 2019 02:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554198181; cv=none; d=google.com; s=arc-20160816; b=Lrwq4Zkw8iofr9oSNZjgqj0eEXyaNwzGXPmHOM9sAbYdaySxJ7JSqwQ7kJQOEQFoB9 MDaSlymQy3Cfsid5sv2Pu5r0WF2nrzTz5L2u8ATsNOs5lyRqK8UYCcvqSpgOpqOQeEfX KE06qQLlIP+YYSgf45yrD2LX9VAnz4l/MvDWdMhsJmHArSYbdNRolUvTSN4B1pWGGpOJ bWTqOyxJKXqfSFMPQzGyeXJYjuWeQlAB2SL0BT7BG8wfbRJyxBYen/cp6V/Yc3L03dgE oEhc0bOkXbR1V9t4udsPnivsY5rVtZnV8voDCTKDLi8BuWum8d8qHDB9Imlf1D85mmt5 HMNA== 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=OHFxUd9QDYFYHgAc1w6D5dTReQsvDAiz01SnsUjBSK8=; b=IYikxE2CSvx153hIShcO7sE1qO/+NCQzx9lOYR7YrEDCUE8KbWn6k4nfGo3w5MxZ3q zpxE3k1lrJDjyabv+BB9kMJL2mfcCR8CFgBBAYSS1GCY5rNZEL1fDh1rW8FqNBONYyKm IIr5k4OQdQmJwhCwD179XxOXEklttxhHG+sWDFlXGiU3gMRVemYZqOPN3rq5LGX4FBfF ziGZzvQiZY7wAK51xM03lAiSRxaNYdolSnEVAHF38NsLSJ9eFpY5OZB2Dj4rrlg/7RIn ReFbfFsjFImSm+vX4piqIYY2YNymqmqcPa+38OM1SKa7gz+JbhnBDRbTISFIMcpC0Y5M hxWA== 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 x15si10954619pgq.194.2019.04.02.02.42.46; Tue, 02 Apr 2019 02:43:01 -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 S1729801AbfDBJg1 (ORCPT + 99 others); Tue, 2 Apr 2019 05:36:27 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:41810 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726284AbfDBJg0 (ORCPT ); Tue, 2 Apr 2019 05:36:26 -0400 X-UUID: c8d6df55584f4e6c9b6917ef19e04835-20190402 X-UUID: c8d6df55584f4e6c9b6917ef19e04835-20190402 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2082610037; Tue, 02 Apr 2019 17:36:19 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 2 Apr 2019 17:36:17 +0800 Received: from mszsdclx1067.gcn.mediatek.inc (172.27.4.253) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 2 Apr 2019 17:36:17 +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 V8 3/5] drm/mediatek: using new factor for tvdpll in MT2701 Date: Tue, 2 Apr 2019 17:36:03 +0800 Message-ID: <20190402093605.82004-4-wangyan.wang@mediatek.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190402093605.82004-1-wangyan.wang@mediatek.com> References: <20190402093605.82004-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. 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