[PATCH V3] mtd: nand: add Loongson1 NAND driver

Mychaela Falconia mychaela.falconia at gmail.com
Sat May 28 05:50:11 PDT 2016


On 5/28/16, Boris Brezillon <boris.brezillon at free-electrons.com> wrote:
> I think your controller matches Mychaela's "high-level NAND controller"
> definition [1]. Mychaela, can you confirm the Loongson controller
> looks like yours?

Yes, from the code it does look like a very similar deal. The OP's
implementation attaches to the "generic" NAND layer essentially by
cheating: capturing NAND Read Page, Write Page and Read ID command
opcodes, performing the entire operation in the function which, from
the "generic" layer's perspective, it supposed to just issue the
command and return, and then fooling the "generic" layer into
believing that's it's talking to a low-level NAND controller.
Faraday's driver for their FTNANDC024 does the same thing, except that
with their controller even more hacks are needed and the code is much
dirtier.

Note that if the NAND chip uses ONFI, the OP's implementation will
fail for the same reason as Faraday's: the "cheating" logic that tries
to emulate a low-level NAND controller on top of a high-level one does
not handle the ONFI Read Parameter Page command.

To Boris: yes, I realize that I appear to have dropped my original
thread regarding FTNANDC024. I just had a major life disruption: the
Internet connection serving my personal mail server (the one from
which I started that thread) went down around 2016-05-26T22:30:00
GMT/UTC, and as I just learned, it may never come back up, i.e., I may
have to get an entirely different kind of connection before I'll be
able to run my own servers again. I'm using Gmail right now as an
emergency stopgap measure, but I am a life-long command line user, and
webmail is not acceptable to me as a permanent solution. Therefore, I
am currently in hibernation until I get a new comfortable email setup
arranged. When I do get my life back together (i.e., a usable email
setup that's usable in my terminal command line environment), I will
get back to the FTNANDC024 thread.

M~



More information about the linux-mtd mailing list