summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_base.c
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2013-10-04 15:30:38 -0300
committerBrian Norris <computersforpeace@gmail.com>2013-11-06 23:32:54 -0800
commit62e8b851783138a11da63285be0fbf69530ff73d (patch)
tree5c284713748762bc11fa9575a373a4e87aa4b187 /drivers/mtd/nand/nand_base.c
parent95b26563c739d5ed5101318b1bd8895773a3d872 (diff)
downloadlinux-62e8b851783138a11da63285be0fbf69530ff73d.tar.bz2
mtd: nand: pxa3xx: Allocate data buffer on detected flash size
This commit replaces the currently hardcoded buffer size, by a dynamic detection scheme. First a small 256 bytes buffer is allocated so the device can be detected (using READID and friends commands). After detection, this buffer is released and a new buffer is allocated to acommodate the page size plus out-of-band size. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Tested-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
0 files changed, 0 insertions, 0 deletions