altera_qspi: skip erase if the sector is blank
authorThomas Chou <thomas@wytron.com.tw>
Wed, 23 Dec 2015 02:33:52 +0000 (10:33 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Mon, 28 Dec 2015 01:32:43 +0000 (09:32 +0800)
commitf81a673ec4505553ce8d0362f9b8371a8e51c015
tree4376eca3a3e084f9dec6bb224b958393dab8be05
parenta1b1d7eceb033c256ae661d65732323809fb9101
altera_qspi: skip erase if the sector is blank

Skip erase if the sector is blank. The sector erase is slow, and
may take 0.7 sec typically or up to 3 sec worst-case.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
drivers/mtd/altera_qspi.c