projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a57b1f0
)
mtd: spinand: Add missing check
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Fri, 9 Jan 2026 17:18:03 +0000
(18:18 +0100)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Thu, 29 Jan 2026 19:21:40 +0000
(20:21 +0100)
The update cache variant is mandatory, both read and write versions are
being checked, but not this one. All chip drivers seem to implement this
variant, so there should be no breakage.
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/spi/core.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/spi/core.c
b/drivers/mtd/nand/spi/core.c
index
0346916
..
19100ea
100644
(file)
--- a/
drivers/mtd/nand/spi/core.c
+++ b/
drivers/mtd/nand/spi/core.c
@@
-1430,6
+1430,9
@@
int spinand_match_and_init(struct spinand_device *spinand,
op = spinand_select_op_variant(spinand,
info->op_variants.update_cache);
+ if (!op)
+ return -ENOTSUPP;
+
spinand->op_templates.update_cache = op;
return 0;