commit | 12a40a57f762f569f58a393437d8c13864db390a | [log] [tgz] |
---|---|---|
author | Huang Shijie <shijie8@gmail.com> | Mon Sep 27 10:43:53 2010 +0800 |
committer | David Woodhouse <David.Woodhouse@intel.com> | Mon Oct 25 00:49:57 2010 +0100 |
tree | 2ab939b100ff7604422e31719fc1621e7b2f7ee3 | |
parent | 088bd455c954c0c42edde9d4463e44be10101aac [diff] |
mtd: add init_size hook for NAND driver Not all the NAND devices have all the information in additional id bytes. So add a hook in the nand_chip{} is a good method to calculate the right value of oobsize, erasesize and so on. Without the hook,you will get the wrong value, and you have to hack in the ->scan_bbt() to change the wrong value which make the code mess. Signed-off-by: Huang Shijie <shijie8@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>