[PATCH 1/5] mtd: ofpart: grab device tree node directly from master device node
Robert Jarzmik
robert.jarzmik at free.fr
Thu Oct 29 13:28:01 PDT 2015
Boris Brezillon <boris.brezillon at free-electrons.com> writes:
> On Thu, 29 Oct 2015 18:23:47 +0100
> Marek Vasut <marex at denx.de> wrote:
> Except it's now how devices supporting 16 bits data bus are supposed to
> work, which means your NAND controller will probably not be able to
> send the command/address value on the higher 8 bits...
Correct.
>> > 2/ NAND chips can have bad blocks, so even if you were able to address
>> > 2 chips (which according to #1 is impossible), you might try to write
>> > on a bad block on the chip connected on the MSB side of the data bus.
>>
>> This one is a valid problem. The other valid issue here is where the
>> command might fail on one chip and pass on the other.
Probably the bad block wins, and the command is reported as a failure.
>> > 3/ There probably are plenty of other reasons why this is not
>> > possible ;-).
>>
>> It's possible, implementable, but a really bad idea.
>
> Possible and implementable, maybe with an adapted software stack
> and a customized NAND controller. I know you're working on emulating
> flash devices using FPGA, so the next step is to create a new NAND
> controller IP supporting that kind of stuff and adding support for
> this feature to the NAND framework ;-).
> Anyway, it"s definitely a bad idea.
I agree, a bad idea.
Just to finish the discussion, let me quote the pxa3xx developper manual volume
2, chapter 3.7.6.1 "Flash Memory Data Width when Two Flash Devices Connect to
the Same Chip" :
When NDCR[DWIDTH_C] = 1 and NDCR[DWIDTH_M] = 0, two flash devices are
connected to the same chip select with DF_IO<7:0> interfacing to one device,
and DF_IO<15:8> interfacing to the second device. In this scenario, since
two devices are accessed simultaneously, the command and address are
replicated between the lower and upper byte of the interface.
Now, regardless of this, please continue with your patches, this corner case is
not important, at least I don't care at all.
Cheers.
--
Robert
More information about the linux-mtd
mailing list