[PATCH v2 3/7] mtd: spinand: simulate behavior of linux's function spinand_wait()