Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753359AbbFLGx6 (ORCPT ); Fri, 12 Jun 2015 02:53:58 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:35205 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbbFLGx5 (ORCPT ); Fri, 12 Jun 2015 02:53:57 -0400 From: Arun Chandran To: Michal Simek Cc: linux-kernel@vger.kernel.org, Michal Simek , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , linux-arm-kernel@lists.infradead.org, Arun Chandran Subject: [PATCH v2] ARM: zynq: Fix earlyprintk in big endian mode Date: Fri, 12 Jun 2015 12:23:24 +0530 Message-Id: <1434092004-21385-1-git-send-email-achandran@mvista.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433945584-16379-1-git-send-email-achandran@mvista.com> References: <1433945584-16379-1-git-send-email-achandran@mvista.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1095 Lines: 36 earlyprintk messages are not appearing on the terminal emulator during a big endian kernel boot. In BE mode sending full words to UART will result in unprintable characters as they are byte swapped versions of printable ones. So send only bytes. Signed-off-by: Arun Chandran --- --- Changes since v1: removed the byte swapping logic. Just send characters instead. --- arch/arm/include/debug/zynq.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/debug/zynq.S b/arch/arm/include/debug/zynq.S index bd13ded..de86b92 100644 --- a/arch/arm/include/debug/zynq.S +++ b/arch/arm/include/debug/zynq.S @@ -38,7 +38,7 @@ .endm .macro senduart,rd,rx - str \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA + strb \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA .endm .macro waituart,rd,rx -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/