From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754544AbcA0KqI (ORCPT ); Wed, 27 Jan 2016 05:46:08 -0500 Received: from s3.sipsolutions.net ([5.9.151.49]:47099 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753934AbcA0KqE (ORCPT ); Wed, 27 Jan 2016 05:46:04 -0500 Message-ID: <1453891554.2351.1.camel@sipsolutions.net> Subject: Re: [PATCH RFC 2/2] MIPS: dt: Explicitly specify native endian behaviour for syscon From: Johannes Berg To: Jonas Gorski , Florian Fainelli Cc: Mark Brown , Ralf Baechle , Kevin Cernekee , "linux-kernel@vger.kernel.org" , MIPS Mailing List , Simon Arlott , Arnd Bergmann Date: Wed, 27 Jan 2016 11:45:54 +0100 In-Reply-To: References: <1453848410-24949-1-git-send-email-broonie@kernel.org> <1453848410-24949-2-git-send-email-broonie@kernel.org> <56A7FE3F.5090909@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2016-01-27 at 11:33 +0100, Jonas Gorski wrote: >  > > +++ b/arch/mips/boot/dts/brcm/bcm6368.dtsi > > @@ -54,7 +54,7 @@ > >                 periph_cntl: syscon@10000000 { > >                         compatible = "syscon"; > >                         reg = <0x10000000 0x14>; > > -                       little-endian; > > +                       native-endian; > > But native-endian == big-endian usually for bcm63xx, so is this > actually a bugfix? > It's complicated :) These were originally specified as little-endian because it _worked_, but that was only because of an issue with the code - it was getting byteswapped twice. This was "fixed" in commit 29bb45f25ff3051354ed330c0d0f10418a2b8c7c, and I assume this DT file was created/copied before that commit and didn't get that update due to merge delays. So after that commit, this file couldn't have worked, but that's how it got to this point. johannes