Skip to contentSkip to conversation

no buffered write in m28w320cb

PATCH New Robin Gilks 1 participant 1 message Feb 19, 2004 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 no buffered write in m28w320cb

Like the m28w320ct, the m28w320cb does not support buffer writes.

This patch to cfi_cmdset_0001.c treats them the same by disabling the timeout value for m28w320cb devices to turn off the buffered write feature.

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
diff -purN /home/gilksr/mtd/drivers/mtd/chips/cfi_cmdset_0001.c /home/packages/mtd/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -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[] = {