]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit561a59878574da8018a6dabebb00bc39a4c5c0a5
tree949509916885d374b4df86599d32ee1655a22315
parentc94835832c08184208962aa65578885be3a402e8
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