mtd: tests: check erase block count in page test
authorStefan Agner <stefan@agner.ch>
Sat, 3 Mar 2018 22:26:22 +0000 (23:26 +0100)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 21 Mar 2018 08:50:57 +0000 (09:50 +0100)
commit148a1a5d74485c5595481c3a2bd78daf50cd346a
tree949509916885d374b4df86599d32ee1655a22315
parentac9cd36c7a5dc79b3d10f0110bc096918109fdf8
mtd: tests: check erase block count in page test

When there is only a single erase block, the cross erase test
does not report sensible errors. Warn in case there is only
a single erase block instead of executing the test.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/tests/pagetest.c