Frieder Schrempf
318d5088fd
mtd: spinand: Explicitly use MTD_OPS_RAW to write the bad block marker to OOB
...
commit 621a7b780bd8b7054647d53d5071961f2c9e0873 upstream.
When writing the bad block marker to the OOB area the access mode
should be set to MTD_OPS_RAW as it is done for reading the marker.
Currently this only works because req.mode is initialized to
MTD_OPS_PLACE_OOB (0) and spinand_write_to_cache_op() checks for
req.mode != MTD_OPS_AUTO_OOB.
Fix this by explicitly setting req.mode to MTD_OPS_RAW.
Fixes: 7529df465248 ("mtd: nand: Add core infrastructure to support SPI NANDs")
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200218100432.32433-3-frieder.schrempf@kontron.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-23 10:36:44 +02:00
..
2020-04-23 10:36:39 +02:00
2019-10-23 06:26:33 -04:00
2020-03-25 08:25:50 +01:00
2020-04-17 10:50:22 +02:00
2020-02-24 08:36:36 +01:00
2020-04-17 10:50:12 +02:00
2020-04-23 10:36:27 +02:00
2020-02-11 04:35:09 -08:00
2020-04-17 10:49:56 +02:00
2020-01-04 19:18:25 +01:00
2020-04-17 10:50:22 +02:00
2020-04-23 10:36:29 +02:00
2020-04-01 11:02:12 +02:00
2020-04-17 10:50:22 +02:00
2020-02-05 21:22:52 +00:00
2020-04-17 10:50:18 +02:00
2020-03-05 16:43:43 +01:00
2020-03-12 13:00:30 +01:00
2020-03-12 13:00:30 +01:00
2020-03-12 13:00:31 +01:00
2020-04-08 09:08:43 +02:00
2020-01-09 10:20:06 +01:00
2020-04-17 10:50:03 +02:00
2019-12-31 16:45:09 +01:00
2020-04-02 15:11:01 +02:00
2020-04-23 10:36:42 +02:00
2020-03-21 08:11:59 +01:00
2020-04-23 10:36:27 +02:00
2020-03-12 13:00:30 +01:00
2020-03-25 08:25:56 +01:00
2020-04-21 09:05:02 +02:00
2020-02-24 08:36:53 +01:00
2020-04-23 10:36:43 +02:00
2020-04-13 10:48:14 +02:00
2020-04-17 10:50:21 +02:00
2019-12-17 19:55:39 +01:00
2020-04-23 10:36:42 +02:00
2020-04-23 10:36:20 +02:00
2019-10-28 13:33:41 -07:00
2020-04-23 10:36:37 +02:00
2020-03-18 07:17:53 +01:00
2020-01-04 19:18:30 +01:00
2020-04-17 10:50:24 +02:00
2020-04-17 10:50:08 +02:00
2020-01-17 19:48:59 +01:00
2020-01-23 08:22:35 +01:00
2020-04-17 10:50:25 +02:00
2020-04-08 09:08:42 +02:00
2020-04-17 10:50:25 +02:00
2020-04-23 10:36:44 +02:00
2020-04-23 10:36:42 +02:00
2020-04-01 11:01:38 +02:00
2020-04-23 10:36:42 +02:00
2020-04-17 10:50:10 +02:00
2020-04-08 09:08:42 +02:00
2020-04-23 10:36:23 +02:00
2020-02-24 08:36:34 +01:00
2019-12-31 16:45:25 +01:00
2020-04-17 10:50:11 +02:00
2020-03-25 08:25:47 +01:00
2020-04-23 10:36:33 +02:00
2020-03-18 07:17:55 +01:00
2020-04-21 09:04:51 +02:00
2020-04-23 10:36:41 +02:00
2020-01-14 20:08:18 +01:00
2020-01-23 08:22:51 +01:00
2020-04-21 09:04:52 +02:00
2020-03-12 13:00:29 +01:00
2020-04-17 10:50:16 +02:00
2020-02-24 08:36:41 +01:00
2020-01-14 20:08:37 +01:00
2020-04-23 10:36:31 +02:00
2020-04-17 10:50:18 +02:00
2020-04-23 10:36:16 +02:00
2020-04-23 10:36:30 +02:00
2019-12-31 16:45:11 +01:00
2020-04-17 10:50:05 +02:00
2020-02-19 19:53:07 +01:00
2020-04-17 10:50:08 +02:00
2020-04-21 09:05:04 +02:00
2020-02-05 21:22:49 +00:00
2020-03-05 16:43:50 +01:00
2020-02-28 17:22:13 +01:00
2020-04-23 10:36:44 +02:00
2020-02-24 08:36:27 +01:00
2020-04-21 09:04:55 +02:00
2020-04-17 10:50:19 +02:00
2020-03-05 16:43:44 +01:00
2020-04-23 10:36:43 +02:00
2020-03-18 07:17:55 +01:00
2020-02-24 08:36:47 +01:00
2020-02-24 08:36:48 +01:00
2020-04-23 10:36:15 +02:00
2020-03-25 08:25:49 +01:00