Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c36c46d53b2f95bfcbe992cfb541a78ab92310a4
Commit:     c36c46d53b2f95bfcbe992cfb541a78ab92310a4
Parent:     ad286343665cad2135792bcf53117d8344f64b03
Author:     Adrian Hunter <[EMAIL PROTECTED]>
AuthorDate: Fri Mar 23 17:16:22 2007 +0900
Committer:  David Woodhouse <[EMAIL PROTECTED]>
CommitDate: Wed Apr 25 11:09:37 2007 +0100

    [MTD] [OneNAND] Exit loop only when column start with 0
    
    The JFFS2 requests OOB function from column 0.
    But the oobtest in nand-tests doesn't.
    So we only exit loop only when column start with 0.
    
    Signed-off-by: Adrian Hunter <[EMAIL PROTECTED]>
    Signed-off-by: Kyungmin Park <[EMAIL PROTECTED]>
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
---
 drivers/mtd/onenand/onenand_base.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/onenand/onenand_base.c 
b/drivers/mtd/onenand/onenand_base.c
index b8535ad..000794c 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -857,7 +857,7 @@ static int onenand_transfer_auto_oob(struct mtd_info *mtd, 
uint8_t *buf, int col
                        int n = ed - st;
                        memcpy(buf, oob_buf + st, n);
                        buf += n;
-               } else
+               } else if (column == 0)
                        break;
        }
        return 0;
@@ -1302,7 +1302,7 @@ static int onenand_fill_auto_oob(struct mtd_info *mtd, 
u_char *oob_buf,
                        int n = ed - st;
                        memcpy(oob_buf + st, buf, n);
                        buf += n;
-               } else
+               } else if (column == 0)
                        break;
        }
        return 0;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to