From: David Woodhouse <dwmw2@infradead.org>
To: "Nikita V. Youshchenko" <yoush@cs.msu.su>
Cc: Abraham vd Merwe <abraham@2d3d.co.za>, linux-mtd@lists.infradead.org
Subject: Re: [PATCH] mtd: support for bit-reversed CFI cmd/query
Date: Tue, 22 Apr 2008 20:23:54 +0100 [thread overview]
Message-ID: <1208892234.9212.661.camel@pmac.infradead.org> (raw)
In-Reply-To: <200804222308.39071@blacky.localdomain>
On Tue, 2008-04-22 at 23:08 +0400, Nikita V. Youshchenko wrote:
> > On Wed, 2008-02-27 at 23:48 +0300, Nikita V. Youshchenko wrote:
> > > mtd: support for bit-reversed CFI cmd/query
> > >
> > > Some embedded boards have flash chips connected with reversed bit
> > > order. Example for 16-bit width:
> > > chip D0 is bus D15
> > > chip D1 is bus D14
> > > ...
> > > chip D15 is bus D0
> > > It works perfectly for data access, however probing and issuing
> > > CFI commands for such chips require bit reversing. This patch adds
> > > support for this.
> > >
> > > Signed-off-by: Nikita Youshchenko <yoush@cs.msu.su>
> >
> > Am I missing something, or did you only reverse the bits on 16-bit and
> > 64-bit access, and not 8-bit or 32-bit?
>
> Hmm... Looks so :(.
> The board I work with has 16-bit flash, so I could not test others.
>
> Btw, the vendor of the board confirmed that such a strange flash chip
> connection is 'an old hardware bug', however they decided to keep it in
> current and future revisions of the board 'for backward compatibility'.
>
> Is it a good idea to support such strange cases in the official kernel?
> If yes, I may send an updated patch.
I don't think it's particularly problematic. I _think_ that hacking it
into the endianness support is going to work, and isn't going to screw
up data access (which we really _don't_ want to byteswap/mangle since we
want the CPU to be able to execute from it).
Perhaps we should even go back to supporting the LART this way?
--
dwmw2
prev parent reply other threads:[~2008-04-22 19:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-27 20:48 [PATCH] mtd: support for bit-reversed CFI cmd/query Nikita V. Youshchenko
2008-04-22 18:56 ` David Woodhouse
2008-04-22 19:08 ` Nikita V. Youshchenko
2008-04-22 19:23 ` David Woodhouse [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=1208892234.9212.661.camel@pmac.infradead.org \
--to=dwmw2@infradead.org \
--cc=abraham@2d3d.co.za \
--cc=linux-mtd@lists.infradead.org \
--cc=yoush@cs.msu.su \
/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