Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9082072pxu; Mon, 28 Dec 2020 06:12:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJw38chsG4ktL8jHlm4pG8ANGoDWtogTlyM1cpCfxsjDSchHGjOeZ8ioYhqQQq6aHCIwUGmD X-Received: by 2002:a17:907:4243:: with SMTP id np3mr41271515ejb.212.1609164739714; Mon, 28 Dec 2020 06:12:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609164739; cv=none; d=google.com; s=arc-20160816; b=FvRtte1decOeyGODM5RshRalB1VRzu2DcyymsmC1+ELko4OW679+9P62wNOChKIdzE BcbPmcx7iY3pHlVlfcFxg069FN5XuK+tvg9oQSWnl6YomvO7lhzY8dPvq2euJkK44X9G 8r5/G4SPrxST2QCpEdyk4iNt1nzhsUopaYWHG+mqbWo3eh/3R8gVFvdSHWNQ3XdO/tkE FZunJ84zwg7nvWTR57dFNuDhJrLS7ufmiRsLUMcRkNfbOXTUAhAhincVvsCLe2PhWpUl tdHxHbP0BKUiPtgPx/ogZAabwMM++3UNhWlqGuZav8e+oPUXWyiaoO+3kzntamnayWy7 eHCw== 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=xseuUCwQCPOF/eGz2c+CAE01w9Tq5VjG+fHPZT4J3VU=; b=osQwSTH2qBFVxJev9VdVOxKwrIqfdnPrskWQUeYOEgTfzedMZgNB6oCSs4xlnT2lRT oUdcel8Th4My63MpecMloccZZ4R/v6+XUe4fCkTIhv4v1llb5YgtZ+vS2FelJwCtVsKx yc8mt0T1cUjmM/ahdu3HEbnlDMiUaI4r1JBwiASSqieXJxPunJEU68B+ohsQda3jpMbm rfSRlDRJgprLOIpV8IeDHfOoDFedBmjqW8w4ADflKWMZix+l/G/cEjH9jHrw3buiIIAx ZobRIJ9yzf9jY/AEsQjwK2+KqyHjLBP+TupdPNKm4JQ9aQsLJECDasa5d3LGUAkyIcN0 8XJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CcviVJ1s; 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 dk7si21004126ejb.687.2020.12.28.06.11.57; Mon, 28 Dec 2020 06:12:19 -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=CcviVJ1s; 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 S2438908AbgL1OJ5 (ORCPT + 99 others); Mon, 28 Dec 2020 09:09:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:44274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438892AbgL1OJy (ORCPT ); Mon, 28 Dec 2020 09:09:54 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 16F0820791; Mon, 28 Dec 2020 14:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164553; bh=K0SULmlL3NUmXLIFfFQkH6VeEmYdWtXYalEIMokysxY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CcviVJ1sBjMnwhhurrqyNdNhXMPv+jHCKJ8ar0HSfmVevi39+0KAGJI3L5WmVYp3e Xe7TD/RiyDd9xYao9KqU1PX2rXZYxmikiPJGqh+Ajt1LTaWO53xTCe5ZoigTXQeFHB bFkb31ECzMJz+DHuMJn57WQCCTTSD/30mXTxdv74= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "kernelci.org bot" , Marc Zyngier , Guillaume Tucker , Neil Armstrong , Sasha Levin Subject: [PATCH 5.10 175/717] drm/meson: dw-hdmi: Enable the iahb clock early enough Date: Mon, 28 Dec 2020 13:42:53 +0100 Message-Id: <20201228125029.351428889@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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: Marc Zyngier [ Upstream commit 2b6cb81b95d1e8abfb6d32cf194a5bd2992c315c ] Instead of moving meson_dw_hdmi_init() around which breaks existing platform, let's enable the clock meson_dw_hdmi_init() depends on. This means we don't have to worry about this clock being enabled or not, depending on the boot-loader features. Fixes: b33340e33acd ("drm/meson: dw-hdmi: Ensure that clocks are enabled before touching the TOP registers") Reported-by: "kernelci.org bot" Signed-off-by: Marc Zyngier Tested-by: Guillaume Tucker Reviewed-by: Neil Armstrong [narmstrong: changed reported by to kernelci.org bot] Signed-off-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/20201120094205.525228-3-maz@kernel.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/meson/meson_dw_hdmi.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c b/drivers/gpu/drm/meson/meson_dw_hdmi.c index 29623b309cb11..aad75a22dc338 100644 --- a/drivers/gpu/drm/meson/meson_dw_hdmi.c +++ b/drivers/gpu/drm/meson/meson_dw_hdmi.c @@ -1051,6 +1051,10 @@ static int meson_dw_hdmi_bind(struct device *dev, struct device *master, if (ret) return ret; + ret = meson_enable_clk(dev, "iahb"); + if (ret) + return ret; + ret = meson_enable_clk(dev, "venci"); if (ret) return ret; @@ -1086,6 +1090,8 @@ static int meson_dw_hdmi_bind(struct device *dev, struct device *master, encoder->possible_crtcs = BIT(0); + meson_dw_hdmi_init(meson_dw_hdmi); + DRM_DEBUG_DRIVER("encoder initialized\n"); /* Bridge / Connector */ @@ -1110,8 +1116,6 @@ static int meson_dw_hdmi_bind(struct device *dev, struct device *master, if (IS_ERR(meson_dw_hdmi->hdmi)) return PTR_ERR(meson_dw_hdmi->hdmi); - meson_dw_hdmi_init(meson_dw_hdmi); - next_bridge = of_drm_find_bridge(pdev->dev.of_node); if (next_bridge) drm_bridge_attach(encoder, next_bridge, -- 2.27.0