Flash driver probe/commandset separation.
David Woodhouse
dwmw2 at infradead.org
Tue May 1 10:26:59 EDT 2001
ebiederman at lnxi.com said:
> I'm not certain seperating the jedec probe by manufacturer is
> necessary, and it wouldn't suprise me if ordering might be important
> in a jedec probe. (If so we might only want to seperate the tables of
> chips).
There are many different ways of probing a chip to find out what its JEDEC
ID is. This is the problem that CFI was designed to solve.
The probes we're referring to as 'jedec probe' are one method. There's
another for Intel-compatible chips. PCMCIA devices often have the JEDEC IDs
listed in the CIS.
Once you have the JEDEC IDs, you can then pass control to the right command
set driver. But you need to do the right magic to probe for it first.
ebiederman at lnxi.com said:
> I wonder if we need something like a revision parameter to the cmdset
> code, so we don't try to use new additions to the cmdset on old chips.
We have that already, to a certain extent. We do buffer writes on Intel
chips only if we've already determined that the chips support it.
ebiederman at lnxi.com said:
> And I would like to double check the bus size usages. As last time I
> looked cfi_cmdset_002 would do 16 bit accesses on an 8 bit bus. My
> mapping driver deliberately didn't implement 16 or 32 bit reads to so
> attempting to call them would oops the kernel. Shoot me I need to
> merge my alpha mapping driver with the main mtd tree.
Let them oops. They shouldn't ever get called. Does this mapping driver
work on the SX164? I'm severely tempted... :)
ebiederman at lnxi.com said:
> P.s. What is the right way to merge my code with the main mtd tree?
Send me patches and/or SSH keys.
--
dwmw2
More information about the linux-mtd
mailing list