Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3971785imc; Sun, 24 Feb 2019 18:10:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ4teq6HnXOU7nBNbQy45FNdwvEOhqsLN/oP/sHDCg0uEqZIv6GABvt4CoiYRd8oNlQz4WO X-Received: by 2002:a17:902:9304:: with SMTP id bc4mr17913379plb.81.1551060634288; Sun, 24 Feb 2019 18:10:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551060634; cv=none; d=google.com; s=arc-20160816; b=zO5neymPYWgwqo6YiRlx9/PBC8aAi4S+SP1tNs1h6wqRhta/nsXD0wPsSfuqYN8AUJ mKmEu6LegadAhnJwyF2I319dG1yhUUhSLDqHMC5Y4pJ1mwhOqtAbm3RtoNk1KM/OvXqK bZaWeRn/vSPEoH5p76kbLG7j9ayWHRpZ+7At6GZ6jVA5YTp7alDRt0F7Refooe+mBhBB nXNPTE09sDTr6MAA1uuIoYywrSVUcJtWC5Ay0HLywjWlc5odwWLcpJBXd1WLIySAnXhN vO/Omd9TFN94u3sMBbNrRZASAUXS8ccUtfAlZ29XXwgyFULn+hzz9vLkKB2PAJsHDYh1 fgsA== 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=VtdJWrBbcsIO0iDZxuW7cy6Q4NsZbgxHqkztlSg1vy0=; b=A3mCZZZMnTjUiQKhLJEWiMUwNBr8JceP15L8vj8WfQtxpUVCEfwno5rCmGfbzyF6t5 Bz6YacJvn5mWPDCf9JfU/2hwjJrts0WI7LImvHLrPdDZY2jkMShc7y5gUYQ34zH1L+oR kwtSjK4svKOna1uVumHAEUxQz5791LB1cg2hNFRyXFXGu14qM+DQKd5AYBDGU+V4yDbd imw7icM4NQRvz+nf16HwIGS4oPN7FLTaTd2S0JqPG6dQt6pgNVOuwu3AipkqmttVbAWL qyVtruREei9GKz6hYJRosU2QSN4vieQmc7ImHc8xltWdJdha/sNSBjqYXz7Lx5Py1XtF TFQg== 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 s80si8115690pfa.130.2019.02.24.18.10.19; Sun, 24 Feb 2019 18:10:34 -0800 (PST) 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 S1728545AbfBYCJn (ORCPT + 99 others); Sun, 24 Feb 2019 21:09:43 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:27078 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728483AbfBYCJj (ORCPT ); Sun, 24 Feb 2019 21:09:39 -0500 X-UUID: 0d7cfc5ac13d49698ea4e1d3c725e845-20190225 X-UUID: 0d7cfc5ac13d49698ea4e1d3c725e845-20190225 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2107540438; Mon, 25 Feb 2019 10:09:33 +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; Mon, 25 Feb 2019 10:09:32 +0800 Received: from mszsdaap41.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; Mon, 25 Feb 2019 10:09:31 +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 V6 4/8] drm/mediatek: fix the rate and divder of hdmi phy for MT2701 Date: Mon, 25 Feb 2019 10:09:08 +0800 Message-ID: <20190225020912.29120-5-wangyan.wang@mediatek.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190225020912.29120-1-wangyan.wang@mediatek.com> References: <20190225020912.29120-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 Due to a clerical error,there is one zero less for 12800000. Fix it for 128000000. 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 43bc058d5528..88dd9e812ca0 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