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
..
2018-01-01 12:45:37 -07:00
2018-02-01 08:15:25 -05:00
2018-02-06 14:43:37 +00:00
2018-01-30 14:43:12 -08:00
2018-01-15 12:07:54 -08:00
2018-01-31 19:25:25 -08:00
2018-02-11 14:34:03 -08:00
2018-02-08 11:38:59 -08:00
2018-02-07 09:36:46 -06:00
2018-02-11 14:34:03 -08:00
2018-02-08 11:37:31 -08:00
2018-02-01 10:51:18 -05:00
2018-02-11 14:34:03 -08:00
2018-01-31 08:48:37 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-07 14:25:22 -08:00
2018-02-07 14:25:22 -08:00
2018-02-07 14:25:22 -08:00
2018-02-04 10:43:12 -08:00
2018-02-01 08:15:25 -05:00
2018-01-15 12:07:57 -08:00
2018-02-11 14:34:03 -08:00
2018-02-01 11:27:11 -07:00
2018-02-06 18:32:45 -08:00
2017-12-10 12:58:18 -08:00
2018-01-31 17:18:39 -08:00
2018-01-10 00:27:29 -05:00
2018-03-15 18:22:26 +01:00
2018-02-03 16:25:42 -08:00
2018-02-11 14:34:03 -08:00
2018-01-24 17:33:57 -05:00
2018-02-01 08:15:25 -05:00
2017-11-27 16:45:11 -05:00
2018-02-08 15:18:32 -08:00
2018-02-06 18:32:45 -08:00
2018-02-11 14:34:03 -08:00
2018-01-01 10:09:33 -05:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-05 09:50:29 +01:00
2018-02-11 14:34:03 -08:00
2017-11-28 16:39:09 -08:00
2017-11-29 16:46:48 +01:00
2018-01-01 12:45:37 -07:00
2018-02-01 13:36:15 -08:00
2018-02-04 10:43:12 -08:00
2017-12-19 08:11:01 +01:00
2018-02-07 14:25:22 -08:00
2018-02-05 13:35:56 -08:00
2018-02-06 18:32:45 -08:00
2018-01-31 09:25:20 -08:00
2017-12-28 11:17:29 -05:00
2018-02-03 13:49:22 -08:00
2018-02-05 13:05:20 -08:00
2018-01-08 10:41:39 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-03 10:13:36 -08:00
2018-02-11 14:34:03 -08:00
2018-01-15 12:07:51 -08:00
2017-12-07 14:23:30 -05:00
2018-01-31 09:25:20 -08:00
2018-01-06 09:18:00 -07:00
2018-02-06 18:32:47 -08:00
2018-01-29 07:27:24 -08:00
2018-02-06 10:41:33 -08:00
2018-02-08 15:18:32 -08:00
2017-11-28 13:55:01 +01:00
2018-01-09 23:57:52 -05:00
2018-01-31 09:25:20 -08:00
2017-12-09 20:16:33 -05:00
2017-12-31 16:12:23 +01:00
2018-02-11 14:34:03 -08:00
2018-01-02 19:27:28 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-20 02:31:15 -05:00
2018-02-11 14:34:03 -08:00
2018-01-31 09:25:20 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00