mtd/drivers/mtd/chips cfi_cmdset_0001.c,1.103,1.104
cdavies at infradead.org
cdavies at infradead.org
Wed Oct 16 04:27:28 EDT 2002
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv1334
Modified Files:
cfi_cmdset_0001.c
Log Message:
Fixed offset calculation in cfi_intelext_read_prot_reg
Index: cfi_cmdset_0001.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0001.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -r1.103 -r1.104
--- cfi_cmdset_0001.c 23 Sep 2002 18:25:51 -0000 1.103
+++ cfi_cmdset_0001.c 16 Oct 2002 08:27:25 -0000 1.104
@@ -526,7 +526,7 @@
cfi_send_gen_cmd(0x90, 0x55,chip->start, map, cfi, cfi->device_type, NULL);
while(count && ((offst-base_offst)<reg_sz)){
- *buf=map->read8(map,(chip->start+(extp->ProtRegAddr*ofs_factor)+offst));
+ *buf=map->read8(map,(chip->start+((extp->ProtRegAddr+1)*ofs_factor)+offst));
buf++;
offst++;
count--;
More information about the linux-mtd-cvs
mailing list