Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3728261imb; Tue, 5 Mar 2019 17:53:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwnsFHrR74YcFEL4epp7Vc1BpW5qHbMRuM1ocIw29l7sfq5/QDimZshEQ+XRdYzn4RllsnX X-Received: by 2002:a63:cc15:: with SMTP id x21mr4149687pgf.380.1551837222031; Tue, 05 Mar 2019 17:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551837222; cv=none; d=google.com; s=arc-20160816; b=e3ijerBzboctndUw/3LO1TNVyOrJEmBu4hwbPnLTlhaKyyUj4Pg6e7EzC4iqvf/hFp bt+85Nbdr1zThxyMWU9kmxeICxvz+/AvAL/HrkDLs7QFNL2GmL4QzYNmtuT7nFidaD9Z Y+7VGJpX+AMz/hXw99nVS2kz1Kg/cU75B+e7JkRxBHExXV8kACTkhsUTJ7nM4N/BsWm/ TdXsm1SnzQI//xue3Q3gaSU+RUpH01+CvKLnZ5dr88clEQCtA8Wpb6x0Sp/b3VoLerBh Xo+d/0zFpD8RZ6AJbsyY0YrAfsiADksXaiDrhP6lM5j5CRfsfJah5R/QBCfIJ0zwX8GA qCmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=tQ1IJ9aFm2FlJ5u4wxqnnaLrDS4S6fdW0rKiCzfW7Bo=; b=ToxQ4QdDj+2dI2yjKb/n13WjZoom339THSNA0BdjQD4VB52VP2ITs2V4fS/hjH+Lvj 9VsdMjTiewOD6EkJFfYiZjOqVnVPcg5dh3k3AIfHw5vmM73zwC5Cze4B7+/25ToMuztI d5OgyZwAcs0rvPs4X5wRO+OCG0Zgb1wRD+gCSKH5uNbRFEA+nGtoF0iEDx7P+VfHt+SC Jby2ewE98IgNyQvJRs69J4PjxkLWrgExkJgXhR8rviJzZmzpETJWcDT0aztCBb4D/OJu YL8WjI0pGqmj04KoIQQtMr75+YqeiFU2sc3iGeW8j1i/b7CO04oBtjelWQZQUm2xIzRh dNFQ== 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 u84si393592pfj.2.2019.03.05.17.53.26; Tue, 05 Mar 2019 17:53:42 -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 S1728704AbfCFBwg (ORCPT + 99 others); Tue, 5 Mar 2019 20:52:36 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:61242 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726069AbfCFBwg (ORCPT ); Tue, 5 Mar 2019 20:52:36 -0500 X-UUID: 3dfd3b1805e94ed4b8f40d9a1d5f4e7e-20190306 X-UUID: 3dfd3b1805e94ed4b8f40d9a1d5f4e7e-20190306 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 321559164; Wed, 06 Mar 2019 09:52:22 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 6 Mar 2019 09:52:21 +0800 Received: from [172.21.77.4] (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 6 Mar 2019 09:52:21 +0800 Message-ID: <1551837141.23995.13.camel@mtksdaap41> Subject: Re: [PATCH V6 0/8] make mt7623 clock of hdmi stable From: CK Hu To: wangyan wang CC: Michael Turquette , Stephen Boyd , Matthias Brugger , "Philipp Zabel" , David Airlie , "Daniel Vetter" , chunhui dai , "Colin Ian King" , Sean Wang , "Ryder Lee" , , , , , , Date: Wed, 6 Mar 2019 09:52:21 +0800 In-Reply-To: <20190225020912.29120-1-wangyan.wang@mediatek.com> References: <20190225020912.29120-1-wangyan.wang@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-02-25 at 10:09 +0800, wangyan wang wrote: > From: Wangyan Wang > > V6 adopt maintainer's suggestion. > Here is the change list between V5 & V6 > 1. change "unsigned char mux_flags;" to "u8 mux_flags;" to > match with the struct in " clk: mediatek: add MUX_GATE_FLAGS_2". > Hi, Wangyan: I'm not familiar with this clock system, so I still have some question about it, if you could describe more clear, it would help us to speed up this review process. In [1], I find the clock that dpi and hdmi_phy controls, dpi0: dpi@14014000 { clocks = <&mmsys CLK_MM_DPI1_DIGL>, <&mmsys CLK_MM_DPI1_ENGINE>, <&topckgen CLK_TOP_TVDPLL>; clock-names = "pixel", "engine", "pll"; }; hdmi_phy: phy@10209100 { clocks = <&apmixedsys CLK_APMIXED_HDMI_REF>; clock-names = "pll_ref"; }; In [2], You say that to prevent changing tvdpll would let hdmi stable, and this clock is controlled by dpi, why do you modify the control flow in hdmi_phy? If these two have relationship, please describe more clear because I'm not familiar with this clock system. And I think that patch 'drm/mediatek: using new factor for tvdpll in MT2701' is the major patch to prevent modifying tvdpll because it reduce the factor case. Does MT8173 has the same problem? Just ask, I does not require you to modify MT8173 part. [1] https://github.com/frank-w/BPI-R2-4.14/blob/663f7def421952eb49b2d698eadaff12d02622d2/arch/arm/boot/dts/mt7623.dtsi [2] http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017693.html Regards, CK > > chunhui dai (8): > drm/mediatek: recalculate hdmi phy clock of MT2701 by querying > hardware > drm/mediatek: move the setting of fixed divider > drm/mediatek: using different flags of clk for HDMI phy > drm/mediatek: fix the rate and divder of hdmi phy for MT2701 > clk: mediatek: add MUX_GATE_FLAGS_2 > clk: mediatek: using CLK_MUX_ROUND_CLOSEST for the clock of dpi1_sel > drm/mediatek: using new factor for tvdpll in MT2701 > drm/mediatek: fix the rate of parent for hdmi phy in MT2701 > > drivers/clk/mediatek/clk-mt2701.c | 4 +- > drivers/clk/mediatek/clk-mtk.c | 2 +- > drivers/clk/mediatek/clk-mtk.h | 20 ++++++--- > drivers/gpu/drm/mediatek/mtk_dpi.c | 8 ++-- > drivers/gpu/drm/mediatek/mtk_hdmi_phy.c | 34 ++++------------ > drivers/gpu/drm/mediatek/mtk_hdmi_phy.h | 7 +--- > drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c | 56 +++++++++++++++++++++++--- > drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c | 23 +++++++++++ > 8 files changed, 102 insertions(+), 52 deletions(-) >