patch-2.4.21 linux-2.4.21/drivers/mtd/chips/amd_flash.c
Next file: linux-2.4.21/drivers/mtd/chips/cfi_cmdset_0001.c
Previous file: linux-2.4.21/drivers/mtd/chips/Makefile
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
2003-06-13 07:51:34.000000000 -0700
- Orig file:
linux-2.4.20/drivers/mtd/chips/amd_flash.c
- Orig date:
2002-08-02 17:39:44.000000000 -0700
diff -urN linux-2.4.20/drivers/mtd/chips/amd_flash.c linux-2.4.21/drivers/mtd/chips/amd_flash.c
@@ -3,7 +3,7 @@
*
* Author: Jonas Holmberg <jonas.holmberg@axis.com>
*
- * $Id: amd_flash.c,v 1.17 2002/03/05 17:00:37 jonashg Exp $
+ * $Id: amd_flash.c,v 1.19 2003/01/24 13:30:11 dwmw2 Exp $
*
* Copyright (c) 2001 Axis Communications AB
*
@@ -75,6 +75,7 @@
/* Fujitsu */
#define MBM29LV160TE 0x22C4
#define MBM29LV160BE 0x2249
+#define MBM29LV800BB 0x225B
/* ST - www.st.com */
#define M29W800T 0x00D7
@@ -560,6 +561,18 @@
{ offset: 0x0FC000, erasesize: 0x04000, numblocks: 1 }
}
}, {
+ mfr_id: MANUFACTURER_FUJITSU,
+ dev_id: MBM29LV800BB,
+ name: "Fujitsu MBM29LV800BB",
+ size: 0x00100000,
+ numeraseregions: 4,
+ regions: {
+ { offset: 0x000000, erasesize: 0x04000, numblocks: 1 },
+ { offset: 0x004000, erasesize: 0x02000, numblocks: 2 },
+ { offset: 0x008000, erasesize: 0x08000, numblocks: 1 },
+ { offset: 0x010000, erasesize: 0x10000, numblocks: 15 }
+ }
+ }, {
mfr_id: MANUFACTURER_ST,
dev_id: M29W800T,
name: "ST M29W800T",
@@ -913,7 +926,7 @@
times_left = 500000;
while (times_left-- && flash_is_busy(map, adr, private->interleave)) {
- if (current->need_resched) {
+ if (need_resched()) {
spin_unlock_bh(chip->mutex);
schedule();
spin_lock_bh(chip->mutex);
@@ -1150,7 +1163,7 @@
/* Latency issues. Drop the lock, wait a while and retry */
spin_unlock_bh(chip->mutex);
- if (current->need_resched)
+ if (need_resched())
schedule();
else
udelay(1);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)