[ECOS] bug in strata flash driver
Christoph Csebits
christoph.csebits@frequentis.com
Tue Apr 30 07:48:00 GMT 2002
hi
i found a bug in
packages/devs/flash/intel/strata/current/src/flash_unlock_block.c
Getting the current block lock state presumes a flash not in
8 Bit mode. (accessing always the third byte in Read Query Mode)
in 8 Bit mode you are getting the device code on this position.
patch enclosed
regards, christoph
ChangeLog entry:
2002-04-30 Christoph Csebits <christoph.csebits@frequentis.com>
* src/flash_unlock_block.c: Getting the current block lock
state for flashes in 8-Bit mode is now working correctly.
-------------- next part --------------
--- flash_unlock_block.c.orig Tue Apr 30 16:24:33 2002
+++ flash_unlock_block.c Tue Apr 30 16:27:01 2002
@@ -91,7 +91,11 @@
if (bpv == block) {
is_locked[i] = 0;
} else {
+#if 8 == CYGNUM_FLASH_WIDTH
+ is_locked[i] = bpv[4];
+#else
is_locked[i] = bpv[2];
+# endif
}
bp += block_size / sizeof(*bp);
}
-------------- next part --------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list