
10 Jul
2022
10 Jul
'22
7:37 a.m.
On Fri, Jun 3, 2022 at 12:31 PM Vaishnav Achath vaishnav.a@ti.com wrote:
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
Applied to u-boot-spi/master