
Hi Aaron,
Le 12/04/2011 09:53, Aaron Williams a écrit :
This patch corrects the addresses used when working with Spansion/AMD FLASH chips. Addressing for 8 and 16 bits is almost identical except in the 16 bit case the LSB of the address is always 0. The confusion arose because the addresses in the datasheet for the 16 bit mode are word addresses but the CFI driver assumed they were byte addresses.
I have only been able to test this on our Octeon boards which use either an 8 or 16 bit bus. I have not tested 32-bits or when there are multiple parts in parallel on a wider bus.
Several other people have also reported success with this patch.
-Aaron Williams
Signed-off-by: Aaron Williamsaaron.williams@caviumnetworks.com
drivers/mtd/cfi_flash.c | 66 +++++++++++++++++++++++++++++++--------------- include/mtd/cfi_flash.h | 43 ++++++++++++++++-------------- 2 files changed, 67 insertions(+), 42 deletions(-)
That's V2 of http://patchwork.ozlabs.org/patch/89429/, isn't it ? Then it should have V2 tag and patch history.
Amicalement,