* [PATCH] no buffered write in m28w320cb
@ 2004-02-19 3:24 Robin Gilks
0 siblings, 0 replies; only message in thread
From: Robin Gilks @ 2004-02-19 3:24 UTC (permalink / raw)
To: mtd list
[-- Attachment #1: Type: text/plain, Size: 421 bytes --]
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.
--
Robin Gilks
Senior Design Engineer Phone: (+64)(3) 357 1569
Tait Electronics Fax : (+64)(3) 359 4632
PO Box 1645 Christchurch Email : robin.gilks@tait.co.nz
New Zealand
[-- Attachment #2: cfi_cmdset_0001.diff --]
[-- Type: text/plain, Size: 687 bytes --]
diff -purN /home/gilksr/mtd/drivers/mtd/chips/cfi_cmdset_0001.c /home/packages/mtd/drivers/mtd/chips/cfi_cmdset_0001.c
--- /home/gilksr/mtd/drivers/mtd/chips/cfi_cmdset_0001.c 2003-08-12 10:00:05.000000000 +1200
+++ /home/packages/mtd/drivers/mtd/chips/cfi_cmdset_0001.c 2003-10-17 16:53:47.000000000 +1300
@@ -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[] = {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-19 3:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-19 3:24 [PATCH] no buffered write in m28w320cb Robin Gilks
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.