Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935087AbcCJFTy (ORCPT ); Thu, 10 Mar 2016 00:19:54 -0500 Received: from smtprelay2.synopsys.com ([198.182.60.111]:38049 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750950AbcCJFTj convert rfc822-to-8bit (ORCPT ); Thu, 10 Mar 2016 00:19:39 -0500 From: Vineet Gupta To: Lada Trimasova , "linux-snps-arc@lists.infradead.org" CC: "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , Alexey Brodkin , Noam Camus Subject: Re: [PATCH] arc: use little endian accesses Thread-Topic: [PATCH] arc: use little endian accesses Thread-Index: AQHReigfRSv5veAsMECB7TAUVwCh6g== Date: Thu, 10 Mar 2016 05:19:37 +0000 Message-ID: References: <1457544064-16167-1-git-send-email-ltrimas@synopsys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.144.199.104] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1031 Lines: 21 On Thursday 10 March 2016 10:35 AM, Vineet Gupta wrote: > +CC Noam > > On Wednesday 09 March 2016 10:51 PM, Lada Trimasova wrote: >> > Memory access primitives should use cpu_to_le16, cpu_to_le32, le16_to_cpu >> > and le32_to_cpu because it is not really guaranteed that drivers handles >> > any ordering themselves. > That is the driver issue. readxx as API simply returns data in native endianness. > We've had EZChip running big endian and so far and they didn't need this change. > >> > For example, serial port driver doesn't work when kernel is build for >> > arc big endian architecture. > Last I tested Big Endian on SDP with 8250 part + 8250 driver it was working fine. > I presume this is the systemC model for device and standard 8250 driver and very > likely the model is not fixed endian or something. > > Alexey knows about this stuff - this was discussed on lkml back in 2013 when he > was fighting the Xilinx systemAce driver endian issues > Do you need "native-endian" DT entry in nsimosci DT bindings for uart ?