summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/spi
diff options
context:
space:
mode:
authorApurva Nandan <a-nandan@ti.com>2023-05-26 14:42:40 +0530
committerPraneeth Bajjuri <praneeth@ti.com>2023-05-30 06:35:37 -0500
commitb4012b5f22cd05ae4b175d9d1317def114c84a8c (patch)
tree1879c8d21f25d70d85a35382908c7a080cee54ab /drivers/mtd/nand/spi
parent5f8e7ac9a9b6e6b89a4cf18b5e5dfce225732a3e (diff)
mtd: spinand: Add pointer to probed flash's spinand_info
The data_ops_variants and ctrl_ops_variants defined in manufacturer's code are required again when changing flash modes, because they hold the op templates for the new protocol. It would be useful to have a pointer to the device description entry i.e. probed flash's spinand_info table in the spinand_device struct itself. Signed-off-by: Apurva Nandan <a-nandan@ti.com>
Diffstat (limited to 'drivers/mtd/nand/spi')
-rw-r--r--drivers/mtd/nand/spi/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c
index eb84060bbc3..f5c5f87361a 100644
--- a/drivers/mtd/nand/spi/core.c
+++ b/drivers/mtd/nand/spi/core.c
@@ -987,6 +987,7 @@ int spinand_match_and_init(struct spinand_device *spinand,
spinand->eccinfo = table[i].eccinfo;
spinand->flags = table[i].flags;
spinand->select_target = table[i].select_target;
+ spinand->desc_entry = &table[i];
op = spinand_select_data_op_variant(spinand,
info->data_ops_variants.read_cache);