Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5076439pxb; Mon, 15 Feb 2021 08:54:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAxjO+0hcSDhU0EgexB8dhAmNXVCe6AdW9pk46uc/THoXz15OHaqY35/as7AlSG0f23tND X-Received: by 2002:a17:907:da3:: with SMTP id go35mr15915979ejc.26.1613408052436; Mon, 15 Feb 2021 08:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613408052; cv=none; d=google.com; s=arc-20160816; b=0x7awDkze149mm/32QRPCf8EIQYKv2sBuPV8zyj9aD735Zwrolq5g7PwutvmIwa4kf y8yeAuCNaPIy8Q73ZpiW3no+5+hRffRyruN4ylcm1ouZ26Brjd9MNOQJnzJSQM29n0lE Dnxr0e3Fvxz45atOHlUtH5igRX2pHwRnyiwbF+pJmIgBMGe9WZBIQJcF6bWRWhzXT7Fz GBqXolb7p0C46ySEoH1ylNiyNdqrbGMtWV7gWYyMCZ9z+NMNXykTpTcS0n5f6rS75cr1 CIdEVB2Y3EuUizQXwQLPXXxox34EXUR+L7xo+nEn+3K6rFJNIcw8cSQOV2axyd/fhtEV i57g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JEPdqOqvf9UJZABKkU37WiH/Vevrqm6bTKkNHvpGnbk=; b=0BAiskKMcPIplqI6SRBH4L2jLvcuSNJm7gzVxIwE6QFqrAA4c/ruhQ9sN1Zo+VISnz qw1lBjJ17d1DfY8HAZ0pcq2H/jjsUkxpyiUqwuOOUPPxNy9e+uKRLVe+01WSFwXWdTfj 2BY8sL3lxxD+OrhhJuAg/ryFuC/RTnne5ETE9JeytILE/+CzONiRlKhss+QqDiALMmds sr5W+ZAHAOvNVJakCYkUAO5mmPnsyxDK+WQLDkDLAPV5d2eltUVKpxScvN1BovhGIVxo 42gETlYlvfsI+gJBNoaslgLfKLtDeJ/LlaQsUM0aDFfPyNxYCIhdJeFlAy+2vhdx4nZi VS6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="lMauE8/O"; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s22si3070654eja.338.2021.02.15.08.53.48; Mon, 15 Feb 2021 08:54:12 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b="lMauE8/O"; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232108AbhBOQw4 (ORCPT + 99 others); Mon, 15 Feb 2021 11:52:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:49636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbhBOPmG (ORCPT ); Mon, 15 Feb 2021 10:42:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CD0AE64EB4; Mon, 15 Feb 2021 15:35:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613403305; bh=B6O93IjPN+W5cjtNpsnuETwY1F2GPt6zl364ilkygQY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lMauE8/OUuAPUYFNdQiKTz8lgkONcfs0rmUvxGlpoJGXKv0bcRPShXyVjHEFxnZCO 8uu87TI7Ruz/Urm2LF9NqF8Y1vlkU2/jzBiIXDNafpUwq/ozWjPpQVy11vYWiZXXDw c7PqAbFWpJNfsYumcFTquSESi5H+eZDP/YTdvqs4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen-Yu Tsai , Andre Heider , Jernej Skrabec , Maxime Ripard , Sasha Levin Subject: [PATCH 5.10 078/104] drm/sun4i: dw-hdmi: always set clock rate Date: Mon, 15 Feb 2021 16:27:31 +0100 Message-Id: <20210215152721.970500823@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210215152719.459796636@linuxfoundation.org> References: <20210215152719.459796636@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jernej Skrabec [ Upstream commit 36b53581fe0dc2e25b67de4e58920307f22d195a ] As expected, HDMI controller clock should always match pixel clock. In the past, changing HDMI controller rate would seemingly worsen situation. However, that was the result of other bugs which are now fixed. Fix that by removing set_rate quirk and always set clock rate. Fixes: 40bb9d3147b2 ("drm/sun4i: Add support for H6 DW HDMI controller") Reviewed-by: Chen-Yu Tsai Tested-by: Andre Heider Signed-off-by: Jernej Skrabec Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20210209175900.7092-4-jernej.skrabec@siol.net Signed-off-by: Sasha Levin --- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 4 +--- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c index 92add2cef2e7d..23773a5e0650b 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c @@ -21,8 +21,7 @@ static void sun8i_dw_hdmi_encoder_mode_set(struct drm_encoder *encoder, { struct sun8i_dw_hdmi *hdmi = encoder_to_sun8i_dw_hdmi(encoder); - if (hdmi->quirks->set_rate) - clk_set_rate(hdmi->clk_tmds, mode->crtc_clock * 1000); + clk_set_rate(hdmi->clk_tmds, mode->crtc_clock * 1000); } static const struct drm_encoder_helper_funcs @@ -295,7 +294,6 @@ static int sun8i_dw_hdmi_remove(struct platform_device *pdev) static const struct sun8i_dw_hdmi_quirks sun8i_a83t_quirks = { .mode_valid = sun8i_dw_hdmi_mode_valid_a83t, - .set_rate = true, }; static const struct sun8i_dw_hdmi_quirks sun50i_h6_quirks = { diff --git a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h index d983746fa194c..d4b55af0592f8 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h @@ -179,7 +179,6 @@ struct sun8i_dw_hdmi_quirks { enum drm_mode_status (*mode_valid)(struct dw_hdmi *hdmi, void *data, const struct drm_display_info *info, const struct drm_display_mode *mode); - unsigned int set_rate : 1; unsigned int use_drm_infoframe : 1; }; -- 2.27.0