Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=39e73fc10e916db93c8a2c622f0315d296e66cf4
Commit:     39e73fc10e916db93c8a2c622f0315d296e66cf4
Parent:     42265940ed911c355140aa41ca4c2d94d7c5f5d8
Author:     Artem Bityutskiy <[EMAIL PROTECTED]>
AuthorDate: Wed Sep 19 17:56:47 2007 +0300
Committer:  David Woodhouse <[EMAIL PROTECTED]>
CommitDate: Sat Oct 20 15:00:29 2007 +0100

    [MTD] [NAND] nandsim: bugfix in initialization
    
    NAND of > 32MiB in size use 4 bytes in address cycle, not 3.
    
    Reported-by: bhsong <[EMAIL PROTECTED]>
    Signed-off-by: Artem Bityutskiy <[EMAIL PROTECTED]>
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
---
 drivers/mtd/nand/nandsim.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index a757480..10490b4 100644
--- a/drivers/mtd/nand/nandsim.c
+++ b/drivers/mtd/nand/nandsim.c
@@ -511,7 +511,7 @@ static int init_nandsim(struct mtd_info *mtd)
        }
 
        if (ns->options & OPT_SMALLPAGE) {
-               if (ns->geom.totsz < (64 << 20)) {
+               if (ns->geom.totsz < (32 << 20)) {
                        ns->geom.pgaddrbytes  = 3;
                        ns->geom.secaddrbytes = 2;
                } else {
-
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