From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Mon, 28 Aug 2017 20:08:26 +0200 Subject: [U-Boot] [PATCH] video: ipuv3_fb: skip IPU shutdown if IPU was not enabled before In-Reply-To: References: <1503666643-15848-1-git-send-email-agust@denx.de> Message-ID: <20170828200826.1b2301a8@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Fabio, On Mon, 28 Aug 2017 13:22:19 -0300 Fabio Estevam festevam at gmail.com wrote: ... > > + /* > > + * Check if IPU clock was enabled before. Won't access > > + * IPU registers if clock is not enabled. > > + */ > > + reg = readl(&mxc_ccm->CCGR3); > > + if ((reg & MXC_CCM_CCGR3_IPU1_IPU_MASK) == 0) > > + return; > > Maybe you could also check whether IPU2 has been enabled? currently IPU2 is not used, the driver never enables it. I checked it when preparing this patch. Thanks, Anatolij