Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755083AbZJTGRY (ORCPT ); Tue, 20 Oct 2009 02:17:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754708AbZJTGRX (ORCPT ); Tue, 20 Oct 2009 02:17:23 -0400 Received: from ey-out-2122.google.com ([74.125.78.26]:52015 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754702AbZJTGRW (ORCPT ); Tue, 20 Oct 2009 02:17:22 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:reply-to:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=x3ze4qT0UYrSO/d/RDbu5PRwdSrugH0vpdQEn8SaMIziM8pkSxRuoUan3AF+0Lex++ X8vKXoscAo4lHyfiLUq2X0xvIVwX9iJZokzKeEUYuXbyiXzlpkkSmCwGU1/KWhoOwNVx NW2nhdusKDmeDCPuMcECzCmbegGyqdYh49YBY= From: Florian Fainelli Reply-To: Florian Fainelli To: myuboot@fastmail.fm Subject: Re: serial port 8250 messed up after coverting from little endian to big endian on kernel 2.6.31 Date: Tue, 20 Oct 2009 08:17:23 +0200 User-Agent: KMail/1.12.1 (Linux/2.6.29-2-686; KDE/4.3.1; i686; ; ) Cc: linux-kernel@vger.kernel.org, "linux-mips" References: <1255735395.30097.1340523469@webmail.messagingengine.com> <4AD906D8.3020404@caviumnetworks.com> <1255996564.10560.1340920621@webmail.messagingengine.com> In-Reply-To: <1255996564.10560.1340920621@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4081583.Nnz8PKjnI1"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200910200817.24018.florian@openwrt.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1901 Lines: 50 --nextPart4081583.Nnz8PKjnI1 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Le mardi 20 octobre 2009 01:56:04, myuboot@fastmail.fm a =E9crit : > I am trying to bringup a MIPS32 board using 2.6.31. It is working in > little endian mode. After changing the board's hardware from little > endian to bit endian, the serial port print messed up. It prints now > something like - "=E0=E0=E0=E0=E0=E0=E0=E0=E0=E0=E0=E0=E0=E0=E0=E0" on th= e screen. When I trace the > execution, I can see the string the kernel is trying print is correct - > "Linux version 2.6.31 ..." and etc. >=20 > I guess it means the initialization of the serial port is not properly > done. But I am not sure where I should check for the problem. The serial > port device I am using is 8250. Please give me some advise. If the same initialization routine used to work in little-endian, check how= =20 you actually write and read characters from the UART FIFO and especially if= =20 your hardware requires you to do word or byte access to these registers. You can have a look at AR7, which has the same code working for Little and = Big=20 Endian modes in arch/mips/ar7/prom.c lines 272 to the end of the file. It a= lso=20 uses a 8250-compatible UART. --nextPart4081583.Nnz8PKjnI1 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkrdVfMACgkQlyvkmBGtjyYRAwCfR3P8YgiNVpAQw+WPnOke42t/ aucAoLaDJ/ICmDVQ4RqN7ly1vS/hqwOR =ZwRw -----END PGP SIGNATURE----- --nextPart4081583.Nnz8PKjnI1-- -- 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/