linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@bootlin.com>
To: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: NOR access from ARM-BE toolchain
Date: Fri, 17 Aug 2018 14:05:43 +0200	[thread overview]
Message-ID: <20180817140543.44ec1337@bbrezillon> (raw)
In-Reply-To: <VI1PR0402MB38542274356BBA43DED30DDC973D0@VI1PR0402MB3854.eurprd04.prod.outlook.com>

On Fri, 17 Aug 2018 10:54:24 +0000
Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> wrote:

> Hi Boris,
> 
> I am trying to access NOR flash with ARM running in big-endian mode.  But it is causing error as " do_map_probe() failed for type cfi_probe"
> 
> On our platform, The connection between Flash controller and NOR flash is little-endian.
> Here, ARM core running in littler endian mode with MTD_CFI_NOSWAP every things work fine. 
> 
> if we change ARM mode as big-endian, it start showing error as mentioned above. 
> Error is same even with MTD_CFI_BE_BYTE_SWAP option.   
> As per my understanding MTD_CFI_BE_BYTE_SWAP or MTD_CFI_LE_BYTE_SWAP deals with flash controller and flash connection.

If it works in little endian, you should enable MTD_CFI_LE_BYTE_SWAP
(or add the little-endian prop to the flash node in your DT).

> Not sure, if take care of Core endianness also. 
> 
> Please suggest!!
> 
> Regards,
> Prabhakar
> 

      reply	other threads:[~2018-08-17 12:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-17 10:54 NOR access from ARM-BE toolchain Prabhakar Kushwaha
2018-08-17 12:05 ` Boris Brezillon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180817140543.44ec1337@bbrezillon \
    --to=boris.brezillon@bootlin.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=prabhakar.kushwaha@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).