Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754455AbcCWJnY (ORCPT ); Wed, 23 Mar 2016 05:43:24 -0400 Received: from webbox1416.server-home.net ([77.236.96.61]:42212 "EHLO webbox1416.server-home.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbcCWJnP (ORCPT ); Wed, 23 Mar 2016 05:43:15 -0400 From: Alexander Stein To: linux-kernel@vger.kernel.org Cc: Mark Brown Subject: Re: regmap: mmio: regression in pre-v4.6-rc1 Date: Wed, 23 Mar 2016 10:43:08 +0100 Message-ID: <2546674.kDegJfs12v@ws-stein> User-Agent: KMail/4.14.10 (Linux/4.1.15-gentoo-r1; KDE/4.14.16; x86_64; ; ) In-Reply-To: <1981840.HVGTg07J9M@ws-stein> References: <1981840.HVGTg07J9M@ws-stein> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 859 Lines: 17 On Wednesday 23 March 2016 09:48:42, Alexander Stein wrote: > I'm currently trying to get PCIe working on LS1021A (little-endian ARM). For link-detection I need access to a syscon perpheral (SCFG) which is attched to CPU as big-endian. > The corresponding DT part is: > > scfg: scfg@1570000 { > compatible = "fsl,ls1021a-scfg", "syscon"; > reg = <0x0 0x1570000 0x0 0x10000>; > big-endian; > }; > > Based on current linus's master (a24e3d414e59ac765, "Merge branch 'akpm' (patches from Andrew)") I noticed the access is actually done as little-endian. > I could track it down to commit 922a9f936e40001f ("regmap: mmio: Convert to regmap_bus and fix accessor usage"). Reverting it, the access is fine now and I get my PCIe link. Just for the records, this also affects spi-fsl-dspi which is also attached in big-endian. Best regards, Alexander