Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3455094yba; Mon, 8 Apr 2019 20:10:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsKnRgKuQoxkzi3kp3K1GNCbTeRIsEu+emOkQZN/XceOo3TtInerIfoGt6lm7hkFHkyuUN X-Received: by 2002:a62:14c3:: with SMTP id 186mr34316755pfu.21.1554779448221; Mon, 08 Apr 2019 20:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554779448; cv=none; d=google.com; s=arc-20160816; b=yiTji2riztjiRnUf1FHVmYeh+VYoxjxrNksv/8cjpDgm1BUhbCvuwrTZKl65c3kCZm eDVO7QDwq9okgf/1WdVk6ZNvnKNaryBJN0kaHFZOJOpl3JQJTNgsW8bsY9ZJOpAbXoAn 92dS8OaclWmB5ehDDJq5R3ww30jF3qJau47m0lABRsZsObEE5PB10ZCPDEqArgKUYYa7 PT6IWV3qi+KAzd7rC50XX6CW/tNd0g6IllPRwqTLMPJJUdPy91y93GeTM8zevI5xRDPS /1kfWlFdKD2d5rsxHBnIsmbQclzI9YMAnhlkn7jtU6HuPwEW6yDXdmC6SPSIc0w1tU11 J7Mw== 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=F4nKCPEizrkgbHPUzDuJmjXVenTE/kacv1DFr59DLKODy8uoNFYfjWUr3lnKzLvokS 1HNJiZ+bfTxUwDMPZb7tG6E5F82/fh+Clou1rxhn9v0YvDHoG25WYn6cVxXZX1r4hhOn MVOyeF8uBeQQUYMBU3DYACsvH9jrFERPUVitRdbzcQlU4Qhjzddjp8O4DAn9fYlziQ0M mEwL/lALdtBP+5EcjZ4OjXWNilH/28Ks8pDeCP+TPXTTDDEBDrIFbGevPHFpi8JQdPI8 tOjG+jHPpSwR0mdzdg0nwtQJGgIv+bJl9Zbql+87aTztzglW74urREKzIkQ1Vrnhxddn EFNw== 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 2si5078308pld.334.2019.04.08.20.10.33; Mon, 08 Apr 2019 20:10:48 -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 S1726930AbfDIDIX (ORCPT + 99 others); Mon, 8 Apr 2019 23:08:23 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:62550 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726081AbfDIDIW (ORCPT ); Mon, 8 Apr 2019 23:08:22 -0400 X-UUID: 319ee2be208541f28e963d2d201a135a-20190409 X-UUID: 319ee2be208541f28e963d2d201a135a-20190409 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2111795032; Tue, 09 Apr 2019 11:08:10 +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 11:08:08 +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 11:08:07 +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 V9 3/5] drm/mediatek: using new factor for tvdpll in MT2701 Date: Tue, 9 Apr 2019 11:07:54 +0800 Message-ID: <20190409030756.69496-4-wangyan.wang@mediatek.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190409030756.69496-1-wangyan.wang@mediatek.com> References: <20190409030756.69496-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