Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6788152yba; Tue, 14 May 2019 13:45:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbvVJKrQdChwF8Yt/H0vUREpTed8hPw9bfFtQv+VIpGfgHbPDBTx1dCMpO1WqO76N+R03a X-Received: by 2002:a17:902:446:: with SMTP id 64mr38975293ple.322.1557866712811; Tue, 14 May 2019 13:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557866712; cv=none; d=google.com; s=arc-20160816; b=pY2hD5Ut/iM2CvpK58Z1Wb/vS8hwMpkpgi3ZMRy5sUooABLjomgy4ShTIzTnQbnIEZ oRSLtHKY37mOBdh3bohagMd0pt0ocZtSORebDjyy9Np65E/0RWzLRFCJDF/2iUsa8h/R ZJ9ZezyNIE9pfPO2Q25vCDGjdxUPUOrMnw6lKb/0V0Vea4C64Ie9LiaRzi8ZEeKV1kyd WgyYo+Yie4Rdn63ATyAz2tz3nHMZrlu5A0tnlgkhsmAqx9JT/ruCsk/UG2jvArnVnDEZ RCvs/UfFV27e1VD6lVz1pn03pwBFPm3Wthg7SykTmIunFy5SWZ7TDzebakBEoJw40YaJ uvBA== 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:message-id:date:subject:cc:to:from; bh=Eyu+VwjfkXTCzjoi42otDAkaMaJBm3JJPc+xrta3KZY=; b=ktcX3GE5uY0frW9wdoxcLD2bNBFNf+SpVYj3UfDqPN78x+R144wlz43G2H8+JFLLXz VBLLCkE5ZXYg5IAWZwU2e4tFv6CMdM9gCWfD1sU65x4ufR9o9IFaHTPc2skfacIpr/YY zyc+9+mVuf8orjp2C87sZBEk48CxJdwGt7hxtkLXjaDQzTgA73WHtkxlJ2jhcy8emKr1 TTC0J5n33N/y9mrXDE6gikZz/5b/uaoSnTIvR/bQA+zJqGAr+xqlOXbrLCUcOGFZPgSX 8SoNxDuyhK7vBxPY+9MFYiL8E0ma4B/2YusFdrK5rxh2BYze1yRiQezfXcihqufwiZJl GDqQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z186si20114670pgd.126.2019.05.14.13.44.58; Tue, 14 May 2019 13:45:12 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726528AbfENUnw (ORCPT + 99 others); Tue, 14 May 2019 16:43:52 -0400 Received: from mailoutvs21.siol.net ([185.57.226.212]:59420 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726424AbfENUnw (ORCPT ); Tue, 14 May 2019 16:43:52 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 6A9F2521EE8; Tue, 14 May 2019 22:43:50 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta09.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta09.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id an7GL3Abu5SR; Tue, 14 May 2019 22:43:50 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id 1CCDB521E08; Tue, 14 May 2019 22:43:50 +0200 (CEST) Received: from localhost.localdomain (cpe-86-58-52-202.static.triera.net [86.58.52.202]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPSA id 8202D521EE8; Tue, 14 May 2019 22:43:47 +0200 (CEST) From: Jernej Skrabec To: maxime.ripard@bootlin.com, wens@csie.org Cc: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, stable@vger.kernel.org Subject: [PATCH 2/2] drm/sun4i: Fix sun8i HDMI PHY configuration for > 148.5 MHz Date: Tue, 14 May 2019 22:43:37 +0200 Message-Id: <20190514204337.11068-3-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190514204337.11068-1-jernej.skrabec@siol.net> References: <20190514204337.11068-1-jernej.skrabec@siol.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vendor provided documentation says that EMP bits should be set to 3 for pixel clocks greater than 148.5 MHz. Fix that. Cc: stable@vger.kernel.org # 4.17+ Fixes: 4f86e81748fe ("drm/sun4i: Add support for H3 HDMI PHY variant") Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c b/drivers/gpu/drm/sun= 4i/sun8i_hdmi_phy.c index afc6d4a9c20b..43643ad31730 100644 --- a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c +++ b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c @@ -293,7 +293,8 @@ static int sun8i_hdmi_phy_config_h3(struct dw_hdmi *h= dmi, SUN8I_HDMI_PHY_ANA_CFG2_REG_BIGSW | SUN8I_HDMI_PHY_ANA_CFG2_REG_SLV(4); ana_cfg3_init |=3D SUN8I_HDMI_PHY_ANA_CFG3_REG_AMPCK(9) | - SUN8I_HDMI_PHY_ANA_CFG3_REG_AMP(13); + SUN8I_HDMI_PHY_ANA_CFG3_REG_AMP(13) | + SUN8I_HDMI_PHY_ANA_CFG3_REG_EMP(3); } =20 regmap_update_bits(phy->regs, SUN8I_HDMI_PHY_ANA_CFG1_REG, --=20 2.21.0