spi-nor: Port erase timeout fix from Linux
Large SPI-NOR (>2MB) chips reuire more than 40 seconds to perform
all-chip erase. This patch adapts
09b6a37 from Linux kernel, which
implements simple heuristics in order to calculate appropriate wait
time (see orignal commit's description for more details of the fix)

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a6f73ec commit b09ee0358cd41b833da9788acf26efdfb6abe40d
@Andrey Smirnov Andrey Smirnov authored on 6 Feb 2016
Sascha Hauer committed on 8 Feb 2016
Showing 1 changed file
View
drivers/mtd/spi-nor/spi-nor.c