From patchwork Fri Apr 3 23:59:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 458110 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 1C28F14012C for ; Sat, 4 Apr 2015 11:00:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 86E844A047; Sat, 4 Apr 2015 02:00:12 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z9p7QA5AgwPf; Sat, 4 Apr 2015 02:00:12 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B45E8B37B1; Sat, 4 Apr 2015 02:00:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CAC1F4A046 for ; Sat, 4 Apr 2015 02:00:09 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8wkD9rsctwby for ; Sat, 4 Apr 2015 02:00:09 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by theia.denx.de (Postfix) with ESMTPS id 419FC4A039 for ; Sat, 4 Apr 2015 02:00:06 +0200 (CEST) Received: by pabsx10 with SMTP id sx10so38906680pab.3 for ; Fri, 03 Apr 2015 17:00:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=l1MsAthGFMR0IP+hkuM+3vp8q4YmXQP55BUkTPhEAsI=; b=idRIzNRsnxoFWYsH78kiApIzVKeXk+jwL6hFExdyROES11eiFMzzDUQ0q79rti0YI3 78s8azLtuindFMmxbFhPnRoSFTSMV2DrggdVhvIqhBsVPKK75brAy77Tu4l0TRDHNED4 PqnKEoJaGtRuzsPU0sP9QW3HeS3PmQnys36JtJIJHz0QK+xFWdaUsF0Q58JwbzI1zyXa Q7fHJEOrhv9tqFQCniZwi3KUWgxCcWeb0mNiuqHmC9hF7zFguAVNknzi2gDnd5w/4N0a kzTzbxy3iJOLWOki+uOBUPJJKhD1D0+/VJ5saCRmkwUPqCpT0WeHdQ/nRysdN7OuZXwx dviw== X-Gm-Message-State: ALoCoQkM2hifIUaG9N31R5Vc3ytkc5bLaPNmloFlZo8dVRXNCgOiYt8twQow48ifphoRMENPHxmF X-Received: by 10.66.145.41 with SMTP id sr9mr8100341pab.18.1428105604633; Fri, 03 Apr 2015 17:00:04 -0700 (PDT) Received: from tharvey.gw (68-189-91-139.static.snlo.ca.charter.com. [68.189.91.139]) by mx.google.com with ESMTPSA id xj1sm9130905pbb.92.2015.04.03.17.00.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Apr 2015 17:00:04 -0700 (PDT) From: Tim Harvey To: Stefano Babic Date: Fri, 3 Apr 2015 16:59:57 -0700 Message-Id: <1428105597-15216-1-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 1.9.1 Cc: u-boot@lists.denx.de, Jeroen Hofstee , Liu Ying Subject: [U-Boot] [PATCH] imx: ipu: fix occasional hang following disabling of channel X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" It has been observed that some IMX6SDL SoC will hang appx 0.1% of boots between disabling the ipu channel and disabling DMA preceeding an OS boot unless an extra delay is added here. The specific cause is still under investigation. Signed-off-by: Tim Harvey --- drivers/video/ipu_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/ipu_common.c b/drivers/video/ipu_common.c index 5873531..3c1bbbb 100644 --- a/drivers/video/ipu_common.c +++ b/drivers/video/ipu_common.c @@ -1109,6 +1109,7 @@ int32_t ipu_disable_channel(ipu_channel_t channel) if ((channel == MEM_BG_SYNC) || (channel == MEM_FG_SYNC) || (channel == MEM_DC_SYNC)) { ipu_dp_dc_disable(channel, 0); + mdelay(50); } /* Disable DMA channel(s) */