Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753575AbbBYLut (ORCPT ); Wed, 25 Feb 2015 06:50:49 -0500 Received: from mail-qa0-f50.google.com ([209.85.216.50]:42532 "EHLO mail-qa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753572AbbBYLuq (ORCPT ); Wed, 25 Feb 2015 06:50:46 -0500 Message-ID: <54EDB711.1090608@monstr.eu> Date: Wed, 25 Feb 2015 12:50:41 +0100 From: Michal Simek Reply-To: monstr@monstr.eu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Arun Chandran CC: Nicolas Ferre , netdev , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] net: macb: Add big endian CPU support References: <54EB34E7.7060400@monstr.eu> <1424763572-23317-1-git-send-email-achandran@mvista.com> <54ED9DA8.3040809@monstr.eu> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sP05mOQowEowFAf49aqg5tCVXCvjQe1MG" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1917 Lines: 54 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --sP05mOQowEowFAf49aqg5tCVXCvjQe1MG Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >> endian mode all the time. But the logic for detecting this on CPU is c= orrect and this is what >> you need to do on Zynq. You are writing big endian value to little end= ian register and read it back >> to see if it was correctly written or not. >=20 > Just curious; will the same code work without change on a CPU with Big > endian IP? > (ie. If zynq hardware comes with only one change; IP configured in BE; > will the driver be needing further changes?) Depends on HW setup and architecture which you want to use. Let's say test could be to have Microblaze in PL in BE mode (not supporte= d by tools) and bridge to axi. Then depends on Linux kernel how IO functions are impl= emented. That's why it is hard to say yes/no. Thanks, Michal --=20 Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/ Maintainer of Linux kernel - Xilinx Zynq ARM architecture Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform --sP05mOQowEowFAf49aqg5tCVXCvjQe1MG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlTttxEACgkQykllyylKDCEQyQCdFRKb0wiNFNlHmDJznewlgpdQ ZOsAniVeoFc/B6okJ8aaKLZXoD0Vx5KF =zTLn -----END PGP SIGNATURE----- --sP05mOQowEowFAf49aqg5tCVXCvjQe1MG-- -- 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/