Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1363319

Re: regmap: mmio: regression in pre-v4.6-rc1

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: regmap: mmio: regression in pre-v4.6-rc1
Date 2016-03-23 11:40 +0100
Message-ID <rfOmK-22n-13@gated-at.bofh.it> (permalink)
References <rfMEi-Or-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Mar 23, 2016 at 09:48:42AM +0100, Alexander Stein wrote:

Please fix your mail client to word wrap within paragraphs at something
substantially less than 80 columns.  Doing this makes your messages much
easier to read and reply to.

> 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.

Are you *sure* that this is actually big endian?  Are you basing this on
documentation or on what happened to work for you in the past.

> 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.

Have you tried tracing through the code to see what ends up happening to
the I/O?  It should come out using your architecture's big endian
accessors.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

regmap: mmio: regression in pre-v4.6-rc1 Alexander Stein <alexander.stein@systec-electronic.com> - 2016-03-23 09:50 +0100
  Re: regmap: mmio: regression in pre-v4.6-rc1 Alexander Stein <alexander.stein@systec-electronic.com> - 2016-03-23 10:50 +0100
  Re: regmap: mmio: regression in pre-v4.6-rc1 Mark Brown <broonie@kernel.org> - 2016-03-23 11:40 +0100
    Re: regmap: mmio: regression in pre-v4.6-rc1 Alexander Stein <alexander.stein@systec-electronic.com> - 2016-03-23 12:20 +0100
      Re: regmap: mmio: regression in pre-v4.6-rc1 Mark Brown <broonie@kernel.org> - 2016-03-23 12:40 +0100
        Re: regmap: mmio: regression in pre-v4.6-rc1 Alexander Stein <alexander.stein@systec-electronic.com> - 2016-03-23 13:00 +0100
          Re: regmap: mmio: regression in pre-v4.6-rc1 Mark Brown <broonie@kernel.org> - 2016-03-23 13:10 +0100

csiph-web