summaryrefslogtreecommitdiffstats
path: root/drivers/ddr/imx/imx8m/ddr_init.c
diff options
context:
space:
mode:
authorFrieder Schrempf <frieder.schrempf@kontron.de>2020-06-22 16:16:32 +0300
committerJagan Teki <jagan@amarulasolutions.com>2020-12-18 16:16:36 +0530
commite6108004e66b7f0a8a2b9109d339558a1043b7de (patch)
tree8f30e9cfc69429580dfe46d621038ca7d46a66d5 /drivers/ddr/imx/imx8m/ddr_init.c
parent987f1e56edb161431175a4bdb058870d1e4da541 (diff)
downloadu-boot-e6108004e66b7f0a8a2b9109d339558a1043b7de.tar.gz
u-boot-e6108004e66b7f0a8a2b9109d339558a1043b7de.tar.xz
u-boot-e6108004e66b7f0a8a2b9109d339558a1043b7de.zip
mtd: spinand: Explicitly use MTD_OPS_RAW to write the bad block marker to OOB
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
Diffstat (limited to 'drivers/ddr/imx/imx8m/ddr_init.c')
0 files changed, 0 insertions, 0 deletions