linux_dsm_epyc7002/drivers/mtd/tests
Boris Brezillon 8f347c4232 mtd: Unconditionally update ->fail_addr and ->addr in part_erase()
->fail_addr and ->addr can be updated no matter the result of
parent->_erase(), we just need to remove the code doing the same thing
in mtd_erase_callback() to avoid adjusting those fields twice.

Note that this can be done because all MTD users have been converted to
not pass an erase_info->callback() and are thus only taking the
->addr_fail and ->addr fields into account after part_erase() has
returned.

While we're at it, get rid of the erase_info->mtd field which was only
needed to let mtd_erase_callback() get the partition device back.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
2018-03-15 18:22:26 +01:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mtd_nandecctest.c mtd: nand: tests: fix regression introduced in mtd_nandectest 2016-03-04 16:59:20 -08:00
mtd_test.c mtd: Unconditionally update ->fail_addr and ->addr in part_erase() 2018-03-15 18:22:26 +01:00
mtd_test.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nandbiterrs.c mtd: tests: nandbiterrs: Fix read_page return value 2018-01-09 10:56:29 +01:00
oobtest.c mtd: mtd_oobtest: Handle bitflips during reads 2018-01-12 10:24:08 +01:00
pagetest.c mtd: tests: consolidate kmalloc/memset 0 call to kzalloc 2016-01-06 15:17:42 -08:00
readtest.c mtd: readtest: don't clobber error reports 2015-05-14 09:56:31 -07:00
speedtest.c mtd: Unconditionally update ->fail_addr and ->addr in part_erase() 2018-03-15 18:22:26 +01:00
stresstest.c mtd: Make MTD tests cancelable 2015-04-05 18:12:53 -07:00
subpagetest.c mtd: subpagetest: fix wrong written check in function write_eraseblock2 2017-06-08 16:39:21 -07:00
torturetest.c mtd: tests: Replace timeval with ktime_t 2015-10-26 13:23:47 -07:00