Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5116372img; Wed, 27 Mar 2019 02:21:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7eqsmqE+kBv237qETR1qbYMCyA6Wy6C3OOI8fpbn9l3RiJTjvOLKSIpnLv2987vgTJf0a X-Received: by 2002:a17:902:7e49:: with SMTP id a9mr33751078pln.303.1553678480826; Wed, 27 Mar 2019 02:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553678480; cv=none; d=google.com; s=arc-20160816; b=dVkqbeDmzrad0JgoOxmTDMxXtRumgvPS2AoiVx0lofJNqJueHlRcsyPt4E+3JcdqVQ hGP/mPQAy8QUpJUiu3hYGOZRwsN1LDc47Se5HG6v72uB59kBYWNUDX+D1Xc/W39yLyFn R+RM+5XcIb+b7wPe0DtEyCjRCpeTfgq+lkpGbw3BPGQq/10wptlnw8/uy4rAzixdhOPt 2XRqM4iy7mTxpSuTXkWwTpf2gNVj9lX5V3oDgJei+eAZkRO07eGSO17cBuWaoueyGPRM wfUDFf9NjCJqhjtAHxqq5fiER6ZoveXXo45RNe4yhRCKDrtSnK16AzGPSiKhycKzP9gx rq9g== 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=71u2RGoKAeujr1VXMZthTcUJmYMneGrVH0UjY/WMarw=; b=CSYWVbz3IrciY0bWjonq8PyZiVMHIRTNmRq0McckpaeksC/s3J986yQYyoFyrjmJa6 YgSeBtQh9xYBmKYUL9chNmqGOXXN2Phrof2YbhVTii3/KMqxJKJJmFznvSi0OAmkm3uq 66OR82dyDA9zDjptLKbks1m/DgYgOP9MQPxs4aK6NnQoMBLkGHsW1DYA3iU0dptkRnuK Q1vZj9ONLSw8dMARCALMdmHQoDBvhdF5daYsxRS8EWFZLgTAczti3BUqLPduG/Cr9kgx ZBjoRb6QMFk2tV1U0slKedxTofNvUxW1I7TamB5iWjazlUtvWjzKAsfnB7Mh2HlZ0Wd4 oMIg== 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 b12si18029312plr.285.2019.03.27.02.21.05; Wed, 27 Mar 2019 02:21:20 -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 S1732836AbfC0JUH (ORCPT + 99 others); Wed, 27 Mar 2019 05:20:07 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:18097 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1732777AbfC0JUG (ORCPT ); Wed, 27 Mar 2019 05:20:06 -0400 X-UUID: 34d90b31ea844033b2112d97436c4dc7-20190327 X-UUID: 34d90b31ea844033b2112d97436c4dc7-20190327 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2012835614; Wed, 27 Mar 2019 17:20:01 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 27 Mar 2019 17:19:58 +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; Wed, 27 Mar 2019 17:19:57 +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 V7 4/6] drm/mediatek: fix the rate and divder of hdmi phy for MT2701 Date: Wed, 27 Mar 2019 17:19:27 +0800 Message-ID: <20190327091929.73162-5-wangyan.wang@mediatek.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190327091929.73162-1-wangyan.wang@mediatek.com> References: <20190327091929.73162-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: chunhui dai Fixes: 0fc721b2968e ("drm/mediatek: add hdmi driver for MT2701 and MT7623") Reviewed-by: CK Hu Signed-off-by: chunhui dai Signed-off-by: wangyan wang --- drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c b/drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c index fb26a83988dc..cb0c68c94013 100644 --- a/drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c +++ b/drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c @@ -114,8 +114,8 @@ static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate, if (rate <= 64000000) pos_div = 3; - else if (rate <= 12800000) - pos_div = 1; + else if (rate <= 128000000) + pos_div = 2; else pos_div = 1; -- 2.14.1