Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp262273pxa; Thu, 27 Aug 2020 01:17:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh0eUOPImmV8XImOqh32e0tKm4hrgJRU9pYKyyb9N8Usy8RI4RdeeKBje7Fr/BNUIzGGsx X-Received: by 2002:a50:8e11:: with SMTP id 17mr1492803edw.54.1598516254295; Thu, 27 Aug 2020 01:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598516254; cv=none; d=google.com; s=arc-20160816; b=FEOTWwcp1bMzKTjhuT3R917D+5TilWwRqai98DK4DZsdS52ntrC8wc/Hgzexm65JKF QkugXVAcCXnvRzYI+7K1q/mLgY9Kcg7irF3nwuC4UuzXWpC43w22dEDLCXdCVC59Zlnl QcQKtcVjnDZURbsMiXECvztS4vVTUBiJdIkuko3oRFGKtyzIp9dz5N7jajJeMMRa4efV foDxHRH33b8Q+OT92e+/P6qeqAxFLjtQChSBNX3AWr4kWCpZm8/IjzfdgfmUKzUhZZkM GE8FovICOgD+z8H3uCsPt9lhOuWfkkQSvcaXPWK2o5GFMFa/+QPvQCFCCMPhnBm8Dz8k qYBg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=CRrN+bnESVw3xySjOS/D2tb7BK/BCO+kOmldSTBWoSw=; b=09o837Gc4Hxs5XYQ3ceVWGxC8Y+U+pOhFWwqrImJG+gVTXFTNqq8JfcqSqKrsgi6OR 6ztSf+CpyP3yZRT//m9Rn2HLC0X9XkAYvp8JHefPv/AaovdJKgcYWCceIk93BmKpzWPk tGQnu3GcgfYk0whX06DFZUzOlT4aoXe9QSfvSYbOPWPIR2B+n4VVmaW7NV2acrOucimM 7P4t6CTF54EXlYyBzQQDPmpKZMoeZMIcyUIyOUfHRyqTzJukAU7VZ46MXgtzrPBqY3od Cs0n/D8SBzp1jYZv1xJaXWWLyPEaFneCC1MSeNYZlT70elQkyQmc8bYn4JB0gdwTjCLj cEgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r1f2itQK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si770860ejg.477.2020.08.27.01.17.11; Thu, 27 Aug 2020 01:17:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r1f2itQK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727827AbgH0IPu (ORCPT + 99 others); Thu, 27 Aug 2020 04:15:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbgH0IPu (ORCPT ); Thu, 27 Aug 2020 04:15:50 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABCA9C061264 for ; Thu, 27 Aug 2020 01:15:49 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id w2so4088640wmi.1 for ; Thu, 27 Aug 2020 01:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CRrN+bnESVw3xySjOS/D2tb7BK/BCO+kOmldSTBWoSw=; b=r1f2itQK1htdCqLiCgehW3FWfm1h4HuAWXjYf8QoF8itADn/zs0+iM7JnI+bUKhjDJ 9q8o8tM/h9KIjAJkmPiIY1u5I0e69YY+7WLAVZ1dgv8rA19u7Tuejto8giSdCdATv9eR JNVx8tO2iR+tY5RTIyFUv3gV2EOBhgVxJADAAPZ3Fi4YAOqSAH+tGalZkeXB/ZFUG9kg YWIXLhpzgMWL3ZAx8la+eNzkPRwKgJ+NsD+k915EacOLtW/fpaUrFdKk0w71ynmWZt0R lsi84YQMYM+vOrGJFjE9IAj2tEwp5yODvRG8OJpFCr48Jz4HZ+vfM4MzR07CqATUcVok c4Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CRrN+bnESVw3xySjOS/D2tb7BK/BCO+kOmldSTBWoSw=; b=msTCA849S7yusw19H7qZRmXgLEA4eVC0r1VpFohmoaRvEOvbeExhuKEgHZ6pZjBVoX xYrk9S0xB5bM5PSalx08BBknpOzUtRrm+kYYGpocDQs5CT1l1JL6DTMFeQO4FPumT+WC +Fw/cpUsW6TQpM+lHVCDFK6rwPKBoCGUkgHdZOSgif674MmwNKDM0GnNm7TEws4p/AE7 aCGInyIZfLrAkG8nmfV1fxQdP6iayrKqINn6ALISkgRsduUFT8qNpFjXTtXFDCNG7g6T RuRbNvPDHelXe+ILssyyuB+OI42La0PdAdUDJzgqI9vcTqLp16yg18arpVz2jsRN6TZy M0qQ== X-Gm-Message-State: AOAM530jC4f8JXi+prtJLrWZh5cofheYSBapt1HhtAq/EqvENjp3/6JU YIB/7IC9WEXzF/VelAS8hIQ= X-Received: by 2002:a1c:39c4:: with SMTP id g187mr10335779wma.126.1598516148283; Thu, 27 Aug 2020 01:15:48 -0700 (PDT) Received: from ziggy.stardust ([213.195.119.187]) by smtp.gmail.com with ESMTPSA id c8sm4252871wrm.62.2020.08.27.01.15.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Aug 2020 01:15:47 -0700 (PDT) Subject: Re: Aw: [PATCH v5 3/7] drm/mediatek: disable tmds on mt2701 To: Frank Wunderlich , Frank Wunderlich , chunkuang Hu Cc: linux-mediatek@lists.infradead.org, Philipp Zabel , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Daniel Vetter , linux-arm-kernel@lists.infradead.org References: <20200819081752.4805-1-linux@fw-web.de> <20200819081752.4805-4-linux@fw-web.de> From: Matthias Brugger Message-ID: <81276d4c-8883-8bfd-d7d0-9b9ac025ed97@gmail.com> Date: Thu, 27 Aug 2020 10:15:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/08/2020 09:17, Frank Wunderlich wrote: >> diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi_phy.c b/drivers/gpu/drm/mediatek/mtk_hdmi_phy.c >> index 5223498502c4..edadb7a700f1 100644 >> --- a/drivers/gpu/drm/mediatek/mtk_hdmi_phy.c >> +++ b/drivers/gpu/drm/mediatek/mtk_hdmi_phy.c >> @@ -184,6 +184,9 @@ static int mtk_hdmi_phy_probe(struct platform_device *pdev) >> return PTR_ERR(phy_provider); >> } >> >> + if (hdmi_phy->conf->pll_default_off) >> + hdmi_phy->conf->hdmi_phy_disable_tmds(hdmi_phy); >> + >> return of_clk_add_provider(dev->of_node, of_clk_src_simple_get, >> hdmi_phy->pll); >> } > > tried modifying mtk_hdmi_phy_power_on using the new flag to not enable tmds instead of enabling and later disabling it, but this does not work... > > --- a/drivers/gpu/drm/mediatek/mtk_hdmi_phy.c > +++ b/drivers/gpu/drm/mediatek/mtk_hdmi_phy.c > @@ -62,7 +62,8 @@ static int mtk_hdmi_phy_power_on(struct phy *phy) > if (ret < 0) > return ret; > > - hdmi_phy->conf->hdmi_phy_enable_tmds(hdmi_phy); > + if (!hdmi_phy->conf->pll_default_off) > + hdmi_phy->conf->hdmi_phy_enable_tmds(hdmi_phy); > return 0; > } > > @@ -184,8 +185,8 @@ static int mtk_hdmi_phy_probe(struct platform_device *pdev) > return PTR_ERR(phy_provider); > } > > - if (hdmi_phy->conf->pll_default_off) > - hdmi_phy->conf->hdmi_phy_disable_tmds(hdmi_phy); > + //if (hdmi_phy->conf->pll_default_off) > + // hdmi_phy->conf->hdmi_phy_disable_tmds(hdmi_phy); > > return of_clk_add_provider(dev->of_node, of_clk_src_simple_get, > hdmi_phy->pll); > > > same problem as without this Patch (horizontally distorted image flickering on 1280x1024) > > any idea CK Hu? > I'll leave it to CK to decide how to go forward with this. Would be interesting to understand why we need to disable the phy. Someone would need to verify that this holds for mt2701 as well, and not only for mt7623, otherwise we would break mt2701. Regards, Matthias