diff options
author | Apurva Nandan <a-nandan@ti.com> | 2023-01-23 23:13:23 +0530 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2023-01-25 14:10:19 -0600 |
commit | da46b8df652c20387a1c11346af524987a4e8420 (patch) | |
tree | a4accc18ae5d1bdc5cb066e9972fb6f06a1964f7 /drivers | |
parent | 863bbccaec436feb7c2d45acd96c9ed461832653 (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')
-rw-r--r-- | drivers/mtd/nand/spi/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 2b9d9215fa..2486b43fe2 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -984,6 +984,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); |