Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4015287pxb; Tue, 2 Mar 2021 04:46:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOmAMMxO4zq3cSo1TSt+ev0gjBqqhYpSObJaSyw1W3g9NOL3X5AkKf+OWMaTGWkqaLoKGh X-Received: by 2002:a17:907:f97:: with SMTP id kb23mr20273935ejc.33.1614689174561; Tue, 02 Mar 2021 04:46:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614689174; cv=none; d=google.com; s=arc-20160816; b=l21tcaIuDr2eUvg3BSvde1IfzOZWU4Qff2NSUXdT+35JLYIYmcW7ejNPDrswyWsEsG ps7iE0fcC/5czxKa0avp7KU3Suk1C3ZRzMT5B1ygVQk00Tzqdckw+uRZRaFpUHawO6yE TQ8v7fYdll5z4e2DQzkbiYPr1lUsx40ZUe21ZvM0e3Ds/PUleqCa6NNiCY9iXxVSmLFB btnWVE5DF14NVNPOIo2hT+9+BV6cLO3j/ozkckjaxl9+1zQCScxORAwz+wT8fBeQsd2s 5AZJPdfohBvwj8BBR8k1Oq2LNGccbWbMKDhx1lcZFjSjUE7pgccmAb9nz+1w/7X5hj+c g1FA== 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=Oj5uZ94TO0mH/3iy74qtjfPnq9aAcMWSqAxZx/oguMo=; b=itdmxXHv9ROT/WqSGSWVoYgBnSNAGDNAg2J5Q2Q0UvWVsvuLPjSjMqLYv5i/35VdZu XOARf02NUbv1mcD014LT/JBMbUNVupR0dY5XZLOYMjjuJpWuBXQwQBVeDEXiTJzGDOTu EoLphcVhmpqfinnErH1kFii+pCZDoIDPucY12Bt31xQlNyEgAJkDbD33blSBOdYYgEfq OaKjBbzFmCJRhHKbWrNjyYS1L+6oyM8d9srvm7Cw793blvGaojnzcib/2Zvv/EcmoQFD zlmY7AQKH6jWVB1pztMVurF3C3JjDgBI7LMWtabOLPijDwdq2hYL20zqFw79p6ymgcuP kVYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nhBZGrCJ; 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 gf2si13388318ejb.154.2021.03.02.04.45.50; Tue, 02 Mar 2021 04:46:14 -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=nhBZGrCJ; 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 S1443185AbhCBCT1 (ORCPT + 99 others); Mon, 1 Mar 2021 21:19:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:55194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240452AbhCATpg (ORCPT ); Mon, 1 Mar 2021 14:45:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B7B4365030; Mon, 1 Mar 2021 17:14:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614618894; bh=THcye7fJji3pbGpNmY481FFDCt6rSaLVJjbuLCA3Bp4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nhBZGrCJmmILZoUy0vig/B8sTjXdowPJEz0Td+qT47vIKcuSxJK97SVvi49N3uDfz 3Ti869ZVbdnIBcAAJC2abd4t0xcwM9HQpLwowXstI1tQejwum+6fmhdN4zHh2OOZdg 7nUD5t319HqwS3IDjA4vyeCVvVrklUxEh+ylpCV4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dave Stevenson , Dom Cobley , Maxime Ripard , Hans Verkuil , Maarten Lankhorst , Sasha Levin Subject: [PATCH 5.10 229/663] drm/vc4: hdmi: Move hdmi reset to bind Date: Mon, 1 Mar 2021 17:07:57 +0100 Message-Id: <20210301161153.136672182@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@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: Dom Cobley [ Upstream commit 902dc5c19a8fecd3113dd41cc601b34557bdede9 ] The hdmi reset got moved to a later point in the commit 9045e91a476b ("drm/vc4: hdmi: Add reset callback"). However, the reset now occurs after vc4_hdmi_cec_init and so tramples the setup of registers like HDMI_CEC_CNTRL_1 This only affects pi0-3 as on pi4 the cec registers are in a separate block Fixes: 9045e91a476b ("drm/vc4: hdmi: Add reset callback") Reviewed-by: Dave Stevenson Signed-off-by: Dom Cobley Signed-off-by: Maxime Ripard Acked-by: Hans Verkuil Tested-by: Hans Verkuil Link: https://patchwork.freedesktop.org/patch/msgid/20210111142309.193441-3-maxime@cerno.tech (cherry picked from commit 7155334f15f360f5c98391c5c7e12af4c13395c4) Signed-off-by: Maarten Lankhorst Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_hdmi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index db06f52de9d91..1b2b5e3986ebd 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c @@ -661,9 +661,6 @@ static void vc4_hdmi_encoder_pre_crtc_configure(struct drm_encoder *encoder) return; } - if (vc4_hdmi->variant->reset) - vc4_hdmi->variant->reset(vc4_hdmi); - if (vc4_hdmi->variant->phy_init) vc4_hdmi->variant->phy_init(vc4_hdmi, mode); @@ -1744,6 +1741,9 @@ static int vc4_hdmi_bind(struct device *dev, struct device *master, void *data) vc4_hdmi->disable_wifi_frequencies = of_property_read_bool(dev->of_node, "wifi-2.4ghz-coexistence"); + if (vc4_hdmi->variant->reset) + vc4_hdmi->variant->reset(vc4_hdmi); + pm_runtime_enable(dev); drm_simple_encoder_init(drm, encoder, DRM_MODE_ENCODER_TMDS); -- 2.27.0