From patchwork Fri Feb 8 13:00:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Galakhov X-Patchwork-Id: 2115821 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 0E4C03FD56 for ; Fri, 8 Feb 2013 13:01:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946441Ab3BHNBj (ORCPT ); Fri, 8 Feb 2013 08:01:39 -0500 Received: from mail-la0-f48.google.com ([209.85.215.48]:57756 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946433Ab3BHNBi (ORCPT ); Fri, 8 Feb 2013 08:01:38 -0500 Received: by mail-la0-f48.google.com with SMTP id fq13so3678307lab.21 for ; Fri, 08 Feb 2013 05:01:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=wi6LipJNCylBP6/1zlqPH5Hr1vcQuCR4pAQ6PQVhbBQ=; b=Jnamtz9s19uclMGPqEcuhavUNLwDZDY++brrDGyE0TQsNRsocMdpfPBBMTuCOXIGdC XcwH/6RhGWS0MMvz0sWgE15ENTJ6Gy7Cqa4EXxjld1GaJaMdUM8a8tNyq69R9sJBEmYZ 6cVxarG38M9RhuTIMGW9WRJSPGDKGLJglgzoSY0R5A7SsCP54TbjbY7qFhYlaAIS8ZCk kNSfoQbxNPHbF4mLfvgxqpvAlghzTaI0vhE86vxqkTLKHtyPFiBWGHdpcWMQMeZzPMOV 6rdLxYtn4uKBQ0r6AsnbfLvhhUwvCb5d4PpUYBfpZ8aKDZ6MOnf+KCWS9VECCIjGoxcb ll+g== X-Received: by 10.112.28.169 with SMTP id c9mr2298480lbh.84.1360328496948; Fri, 08 Feb 2013 05:01:36 -0800 (PST) Received: from agalakhov-nb-linux.yandex.net (dhcp248-26-ekt.yandex.net. [87.250.248.26]) by mx.google.com with ESMTPS id ft8sm16732311lab.9.2013.02.08.05.01.33 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Feb 2013 05:01:35 -0800 (PST) From: Alexey Galakhov To: linux-samsung-soc@vger.kernel.org Cc: Alexey Galakhov , Kukjin Kim , Russell King Subject: [PATCH] ARM: S5PV210: Fix early uart output in fifo mode Date: Fri, 8 Feb 2013 19:00:54 +0600 Message-Id: <1360328454-20321-1-git-send-email-agalakhov@gmail.com> X-Mailer: git-send-email 1.7.10.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Enabling UART FIFO in bootloader caused the kernel infinite loop on S5PV210 due to uninitialized fifo_max and fifo_mask global variables. This patch adds the correct initialization. Signed-off-by: Alexey Galakhov --- arch/arm/mach-s5pv210/include/mach/uncompress.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-s5pv210/include/mach/uncompress.h b/arch/arm/mach-s5pv210/include/mach/uncompress.h index 08ff2fd..ef977ea 100644 --- a/arch/arm/mach-s5pv210/include/mach/uncompress.h +++ b/arch/arm/mach-s5pv210/include/mach/uncompress.h @@ -19,6 +19,8 @@ static void arch_detect_cpu(void) { /* we do not need to do any cpu detection here at the moment. */ + fifo_mask = S5PV210_UFSTAT_TXMASK; + fifo_max = 63 << S5PV210_UFSTAT_TXSHIFT; } #endif /* __ASM_ARCH_UNCOMPRESS_H */