Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3583119yba; Mon, 8 Apr 2019 23:55:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuaMX/Ya+igsCy4spMuE89xF5d0tl+WdCYTSTuTKYdCLYwEGwvray/pLnHolYIVaBRX7K1 X-Received: by 2002:a17:902:7d81:: with SMTP id a1mr35009213plm.202.1554792941195; Mon, 08 Apr 2019 23:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554792941; cv=none; d=google.com; s=arc-20160816; b=L9E4VsnIV6WPIgYewza93U6yLreLeQlk07kdZ56kUo6In0pn00nqQUVwqf6zQoTYEz MmR0lmWv8tDmLG1qaw+7QeRqWYledwi7MoX1P8myaqrlFP9jaFN0sU0Z0y57/dNc/Zn9 nM42u+SXUlTkdJAAKgaAqOG91aLnhbskHtlhyg5yUvJHdbm8CPnw4w0CbIWI9JQm6ryp bdSXJp6kErlSHlUw4cbW8vE15TsjS/msZkP1EMKJJwO786twN6D3hFCDnKg5HAn/xgUr Sv8tGV17L8PTf0lwhWDRW9bWMyZQh4HYvfG6t/F0DO11h69f4fOJ48GvrUoUwvUKecJc FkLQ== 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=0bszCkj4KRgVEPOfT+Pl+3IpSUJ227vv7Lhl03dJHFc=; b=ArhqCw9iQAvKNj2EYtjlaU5EoZsb3Ntvx5zc1z0dF82te6ca6U2Cq/ABvt3iaM/+OV 8GWSkcbY8DT8aA+MUrvUsssSzQj4O2YzbSGVDP5NDunBkZ+bCZsKrtWcnrCd2F1P39i8 vsdT1IfNhPMECMADMk6G39k7v4Kywml64lIM3HJxJ0YIL5Pr1hCF8e79qpk34kv2OOWv cWpeq/zBjUlQfjyHBSWdc7g8S85c5O6jz91PsKCna6qfDlrBRb5WwnXEHhQLJxxK5lfH 8BzrQQnU2KvYtxDanjAzsA6MDHBiHLOi9TihInl9WJ/007YGtVsu6Cq+7k1y7CAgP1cC 5fdw== 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 c15si28124736pga.465.2019.04.08.23.55.25; Mon, 08 Apr 2019 23:55:41 -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 S1726668AbfDIGx5 (ORCPT + 99 others); Tue, 9 Apr 2019 02:53:57 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:47478 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726081AbfDIGx5 (ORCPT ); Tue, 9 Apr 2019 02:53:57 -0400 X-UUID: 5cf32289ffdc4524948b1c5951c464b0-20190409 X-UUID: 5cf32289ffdc4524948b1c5951c464b0-20190409 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 239497021; Tue, 09 Apr 2019 14:53:12 +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 14:53:11 +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 14:53:10 +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 V10 0/5] make mt7623 clock of hdmi stable Date: Tue, 9 Apr 2019 14:53:02 +0800 Message-ID: <20190409065307.82280-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 V10 adopt maintainer's suggestion. Here is the change list between V9 & V10 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