diff options
author | Vaishnav Achath <vaishnav.a@ti.com> | 2022-06-03 12:31:32 +0530 |
---|---|---|
committer | Jagan Teki <jagan@edgeble.ai> | 2023-12-14 23:47:13 +0530 |
commit | 961c3e9f124c97350c470f65239e0d85aacf413b (patch) | |
tree | 128e7ad5f4f6f3e4261a916cc5b8809d73d2c9bd /drivers/mtd/nand/spi/core.c | |
parent | b2906f5b61b988764807a24c1a3a41547e984096 (diff) |
mtd: spi-nor-core: Implement spi_nor_read_sfdp_dma_unsafe() for sfdp parse
During SFDP header parse and BFPT parse, structures in stack are used
to perform spi_nor_read_sfdp() which expects a dma-safe buffer.
This commit introduces spi_nor_read_sfdp_dma_unsafe() to wrap
spi_nor_read_sfdp() using a kmalloc'ed bounce buffer which is
the same implementation in Linux (drivers/mtd/spi-nor/sfdp.c).
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'drivers/mtd/nand/spi/core.c')
0 files changed, 0 insertions, 0 deletions