Fix m28w320cb buffered write
PATCH 1/1 Fix m28w320cb buffered write
Greetings
Looks like I was on the right lines - the CFI fixups that Stuart introduced just didn't go far enough!! The m28w320cb doesn't support buffered write (just like the m28w320ct doesn't) so a 2 line patch fixes it :-))
Signature · 5 lines
Robin Gilks Senior Design Engineer Phone: (+64)(3) 357 1569 Tait Electronics Fax : (+64)(3) 359 4632 PO Box 1645 Christchurch Email : [email protected] New Zealand
home/packages/mtd/drivers/mtd/chips/cfi_cmdset_0001.c renamed from home/gilksr/mtd/drivers/mtd/chips/cfi_cmdset_0001.c +2 -0
@@ -147,6 +147,8 @@ static void fixup_st_m28w320cb(struct ma/* Note this is done after the region info is endian swapped */ cfi->cfiq->EraseRegionInfo[1 ] = (cfi->cfiq->EraseRegionInfo[1 ] &0xffff0000 ) |0x3e ; + cfi->cfiq->BufWriteTimeoutTyp =0 ;/* Not supported */ + cfi->cfiq->BufWriteTimeoutMax =0 ;/* Not supported */ };static struct cfi_fixup fixup_table[] = {