Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3457815yba; Mon, 8 Apr 2019 20:15:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjoqp2x2KCT8WMwLr7jdaTmBZQPu4ZfQcMbJQahqXnhVEVtrnmvJSTsPM1MQLqOuyLYDXm X-Received: by 2002:a63:b64:: with SMTP id a36mr32402739pgl.58.1554779752854; Mon, 08 Apr 2019 20:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554779752; cv=none; d=google.com; s=arc-20160816; b=yB7OKY4vFdjytU6ZNk59i23LPuGGTUTAjp8dUZ9BzTwobisE9W0O1/MVaZvxtfDY7G qYqMh29e4tij68hi80OAw48ZM3X0qpS2lKpyndBSL2kqItt0B3A/h7ibUbHPJ7LGIHTH grGNdo9mgqPQFgiwwMaJi8mYOiI7QH5mZKfnf7lJU5/KjgpkeTtl1hGZ6GL6lWbqrBJM tDD/Tpdkju18J0oVPUY0MX0wGdqvppO/LUbz9gT6UFOXOGHFpt33BiFPsItxJ+DXM4E4 WMJAsfvHkE8LD9ch/i/hm/VoGMOGAAZvpfpUTuOs2ncNGuqA8TQTuyvUAZx7gUnb/sQX u8cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=2jNB7mvP2E5iLc265uvD6cgcT79Xmu6q7vEZcL/cITQ=; b=ELZX0emyFGfw6W17pML62b1dHYvvh0qhqBFnkS6XAOqb8nKwJjU6vSr98HzFj3qhYt rumYe64w7tPJoWjf8ZmBYuRNSAPdXk/x6GtwWT4bRa+BeWrFzAOWETlI/u1j9l8dZf/B Pdb7nEnq2rYEx9S00VGD5mwsVCjuxTCk5wlsX3hDAXBd6Ct8NA4fYPwV3uv3pA6ri8KM acc65pNO59U7gbqW0EmxujydclmsiF+ktZ+Lj8FXi+XWkph9S4lnZAdFmvU+tSVINleF v+S1RkqVPclP903flAB8eTAQWDrA1MVdWsTl2so1evA2FgRl+RtgulnLhynMqHi62+L3 r4lg== 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 m18si23162562pgv.209.2019.04.08.20.15.37; Mon, 08 Apr 2019 20:15:52 -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 S1726728AbfDIDIJ (ORCPT + 99 others); Mon, 8 Apr 2019 23:08:09 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:51241 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726081AbfDIDIJ (ORCPT ); Mon, 8 Apr 2019 23:08:09 -0400 X-UUID: 3e1d05f2c3374925a14bf825498522c5-20190409 X-UUID: 3e1d05f2c3374925a14bf825498522c5-20190409 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2116267685; Tue, 09 Apr 2019 11:08:01 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 9 Apr 2019 11:07:59 +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:07:58 +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 0/5] make mt7623 clock of hdmi stable Date: Tue, 9 Apr 2019 11:07:51 +0800 Message-ID: <20190409030756.69496-1-wangyan.wang@mediatek.com> X-Mailer: git-send-email 2.14.1 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 V9 adopt maintainer's suggestion. Here is the change list between V8 & V9 1. Align the first character to the right of '(' in mtk_hdmi_phy_clk_get_data() of "drm/mediatek: remove flag ..." 2. Align the first character to the right of '(' in mtk_hdmi_pll_recalc_rate() of "drm/mediatek: make implementation ..." 3. Align the first character to the right of '(' in mtk_hdmi_pll_round_rate() of "drm/mediatek: no change ..." 4. move patch " drm/mediatek: make implementation ..." before patch "drm/mediatek: no change parent ..." 5. To make MT2701 HDMI stable, TVDPLL should not be adjusted and it's the parent clock of HDMI phy, so HDMI phy could not adjust parent rate. there are 3 steps to make MT2701 HDMI stable. 1). remove flag CLK_SET_RATE_PARENT for mt2701 hdmi phy to not propagate rate change to parent in "drm/mediatek: remove flag ...". 2). Using new factor for tvdpll in mt2701 to match divider of DPI in mt2701 in "drm/mediatek: using new...". 3). No change parent rate in round_rate() for mt2701 hdmi phy in "drm/mediatek: no change parent...". 6. Recalculate the rate of this clock, by querying hardware to make implementation of recalc_rate() to match the definition. Wangyan Wang (5): drm/mediatek: remove flag CLK_SET_RATE_PARENT for mt2701 hdmi phy drm/mediatek: fix the rate and divder of hdmi phy for MT2701 drm/mediatek: using new factor for tvdpll in MT2701 drm/mediatek: make implementation of recalc_rate() to match the definition drm/mediatek: no change parent rate in round_rate() for mt2701 hdmi phy 03_27_ck.diff | 91 ++++++++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_dpi.c | 8 +-- drivers/gpu/drm/mediatek/mtk_hdmi_phy.c | 35 ++-------- drivers/gpu/drm/mediatek/mtk_hdmi_phy.h | 5 +- drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c | 50 ++++++++++++-- drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c | 23 +++++++ patch1.diff | 75 ++++++++++++++++++++ patch_5_4.diff | 95 ++++++++++++++++++++++++++ remove_parent_flag.diff | 75 ++++++++++++++++++++ 9 files changed, 412 insertions(+), 45 deletions(-) create mode 100644 03_27_ck.diff create mode 100644 patch1.diff create mode 100644 patch_5_4.diff create mode 100644 remove_parent_flag.diff -- 2.14.1