From: Ezequiel Garcia Date: Fri, 4 Oct 2013 18:30:38 +0000 (-0300) Subject: mtd: nand: pxa3xx: Allocate data buffer on detected flash size X-Git-Tag: v3.13-rc1~98^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62e8b851783138a11da63285be0fbf69530ff73d;p=pandora-kernel.git 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 Tested-by: Daniel Mack Signed-off-by: Brian Norris --- Reading git-diff-tree failed