* [PATCH]nand_base: misused maf_id ( for Linux 2.6.18-RC4 & RC5 )
@ 2006-08-30 5:43 rockeychu
2006-08-30 22:10 ` Ben Dooks
0 siblings, 1 reply; 2+ messages in thread
From: rockeychu @ 2006-08-30 5:43 UTC (permalink / raw)
To: linux-kernel
When finding manufacturer, changed maf_id not maf_idx, so result is not correct.
--- linux-2.6.17_org/drivers/mtd/nand/nand_base.c 2006-08-28
12:29:32.000000000 +0800
+++ linux-2.6.17/drivers/mtd/nand/nand_base.c 2006-08-30 13:09:55.320000000
+0800
@@ -1093,9 +1093,10 @@
ret = nand_do_read_ops(mtd, from, &chip->ops);
+ *retlen = chip->ops.retlen;
+
nand_release_device(mtd);
- *retlen = chip->ops.retlen;
return ret;
}
@@ -1691,9 +1692,10 @@
ret = nand_do_write_ops(mtd, to, &chip->ops);
+ *retlen = chip->ops.retlen;
+
nand_release_device(mtd);
- *retlen = chip->ops.retlen;
return ret;
}
@@ -2222,7 +2224,7 @@
}
/* Try to identify manufacturer */
- for (maf_idx = 0; nand_manuf_ids[maf_idx].id != 0x0; maf_id++) {
+ for (maf_idx = 0; nand_manuf_ids[maf_idx].id != 0x0; maf_idx++) {
if (nand_manuf_ids[maf_idx].id == *maf_id)
break;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH]nand_base: misused maf_id ( for Linux 2.6.18-RC4 & RC5 )
2006-08-30 5:43 [PATCH]nand_base: misused maf_id ( for Linux 2.6.18-RC4 & RC5 ) rockeychu
@ 2006-08-30 22:10 ` Ben Dooks
0 siblings, 0 replies; 2+ messages in thread
From: Ben Dooks @ 2006-08-30 22:10 UTC (permalink / raw)
To: rockeychu; +Cc: linux-kernel
On Wed, Aug 30, 2006 at 05:43:08AM +0000, rockeychu wrote:
> When finding manufacturer, changed maf_id not maf_idx, so result is not correct.
>
>
> --- linux-2.6.17_org/drivers/mtd/nand/nand_base.c 2006-08-28
> 12:29:32.000000000 +0800
> +++ linux-2.6.17/drivers/mtd/nand/nand_base.c 2006-08-30 13:09:55.320000000
> +0800
> @@ -1093,9 +1093,10 @@
>
> ret = nand_do_read_ops(mtd, from, &chip->ops);
>
> + *retlen = chip->ops.retlen;
> +
> nand_release_device(mtd);
>
> - *retlen = chip->ops.retlen;
> return ret;
> }
>
> @@ -1691,9 +1692,10 @@
>
> ret = nand_do_write_ops(mtd, to, &chip->ops);
>
> + *retlen = chip->ops.retlen;
> +
> nand_release_device(mtd);
>
> - *retlen = chip->ops.retlen;
> return ret;
> }
best to send these to the mtd list.
> @@ -2222,7 +2224,7 @@
> }
>
> /* Try to identify manufacturer */
> - for (maf_idx = 0; nand_manuf_ids[maf_idx].id != 0x0; maf_id++) {
> + for (maf_idx = 0; nand_manuf_ids[maf_idx].id != 0x0; maf_idx++) {
> if (nand_manuf_ids[maf_idx].id == *maf_id)
> break;
> }
This should have already been fixed in the mtd-2.6 git.
--
Ben (ben@fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-30 22:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-30 5:43 [PATCH]nand_base: misused maf_id ( for Linux 2.6.18-RC4 & RC5 ) rockeychu
2006-08-30 22:10 ` Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome