OSDN Git Service

nand: pxa3xx: Increase initial buffer size
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Mon, 3 Aug 2015 14:31:26 +0000 (11:31 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 14 Aug 2015 18:22:54 +0000 (11:22 -0700)
commitc16340973fcb6461474a9f811f7f3ff2f946b24c
treeaecde9472ccf773755880325d884cbf595e85271
parentddb2c42b677eb2883e532f0928e445fc205d0019
nand: pxa3xx: Increase initial buffer size

The initial buffer is used for the initial commands used to detect
a flash device (STATUS, READID and PARAM).

ONFI param page is 256 bytes, and there are three redundant copies
to be read. JEDEC param page is 512 bytes, and there are also three
redundant copies to be read. Hence this buffer should be at least
512 x 3. This commits rounds the buffer size to 2048.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/pxa3xx_nand.c