From: Maxime Ripard Subject: Re: [PATCH] drm/sun4i: tcon: Prepare and enable TCON channel 0 clock at init Date: Fri, 1 Feb 2019 14:12:18 +0100 Message-ID: <20190201131218.633gv3npsekliezj@flea> References: <20190131132550.26355-1-paul.kocialkowski@bootlin.com> Reply-To: maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mw7tj6i6edxi3mtm" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <20190131132550.26355-1-paul.kocialkowski-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Paul Kocialkowski Cc: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, David Airlie , Chen-Yu Tsai List-Id: dri-devel@lists.freedesktop.org --mw7tj6i6edxi3mtm Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline On Thu, Jan 31, 2019 at 02:25:50PM +0100, Paul Kocialkowski wrote: > When initializing clocks, a reference to the TCON channel 0 clock is > obtained. However, the clock is never prepared and enabled later. > Switching from simplefb to DRM actually disables the clock (that was > usually configured by U-Boot) because of that. > > On the V3s, this results in a hang when writing to some mixer registers > when switching over to DRM from simplefb. > > Fix this by preparing and enabling the clock when initializing other > clocks. Waiting for sun4i_tcon_channel_enable to enable the clock is > apparently too late and results in the same mixer register access hang. > > Signed-off-by: Paul Kocialkowski Applied, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --mw7tj6i6edxi3mtm--