]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: pxa3xx: Allocate data buffer on detected flash size
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Fri, 4 Oct 2013 18:30:38 +0000 (15:30 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:54 +0000 (23:32 -0800)
commitf8c5c948425f3e1a5479b07ba9cb6152ac1a22ba
tree5c284713748762bc11fa9575a373a4e87aa4b187
parenteb6bc3ec7ff9a2a46a20557f6a6e4516b552aab3
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>
drivers/mtd/nand/pxa3xx_nand.c