Re: [PATCH v3 0/8] Add the Quadspi driver for vf610-twr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, Sep 12, 2013 at 12:55:49PM +0100, Russell King - ARM Linux wrote:
> On Thu, Sep 12, 2013 at 12:48:31PM +0100, Mark Brown wrote:

> > So, to repeat my earlier question can someone tell me what a LUT is?

> It's a very common abbreviation - Look Up Table.

Right, but that doesn't have an obvious mapping to SPI...

> More specifically, it's a set of registers which give the SPI controller
> a sequence of 16-bit commands to execute, which tell it what to do on
> the SPI bus.  Each register contains two commands, and it executes them
> successively throughout the register set until it reaches a STOP command.
> These commands tell the SPI controller the width of the bus, a command
> to send on SPI, whether to read or write data and how much, etc.

That's not quite the full story, these appear to be doing flash specific
things which depend on the partcular flash being interacted with and
which as a result aren't purely at the SPI level.  It's not clear if
this has some sort of generic meaning for flash or if it really is just
a controller specific implementation detail, nor is it clear what the
actual meaning of what the commands do is.

> If you read the comments in patch 5, and the code, it's all explained
> there.

The biggest problem with most of this stuff has been poor abstractions
and application specific assumptions so I'd not want to just assume that
there isn't some broader meaning that's obvious in the flash context, it
seems fairly clear that the hardware is specifically targetted at flash
so generic flash concepts seem likely to appear in the hardware.

Also bear in mind that we need a respin at the big picture level here,
the patches have already been discarded.

> I never saw this before until about an hour ago when I took an interest
> in it after your "what is a LUT" question, and it took less than 15
> minutes to work the above out.

I wouldn't assume that a quick scan is going to tell you what's going
on, nor that things have been explained clearly.

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux