Re: [PATCH] mtd: spi-nor-core: Implement spi_nor_read_sfdp_dma_unsafe() for sfdp parse

2023-12-12 Thread Jagan Teki
On Tue, Dec 12, 2023 at 7:34 PM Tom Rini wrote: > > On Sun, Jul 10, 2022 at 11:07:41AM +0530, Jagan Teki wrote: > > On Fri, Jun 3, 2022 at 12:31 PM Vaishnav Achath wrote: > > > > > > During SFDP header parse and BFPT parse, structures in stack are used > > > to perform spi_nor_read_sfdp() which

Re: [PATCH] mtd: spi-nor-core: Implement spi_nor_read_sfdp_dma_unsafe() for sfdp parse

2023-12-12 Thread Tom Rini
On Sun, Jul 10, 2022 at 11:07:41AM +0530, Jagan Teki wrote: > On Fri, Jun 3, 2022 at 12:31 PM Vaishnav Achath 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

Re: [PATCH] mtd: spi-nor-core: Implement spi_nor_read_sfdp_dma_unsafe() for sfdp parse

2022-07-09 Thread Jagan Teki
On Fri, Jun 3, 2022 at 12:31 PM Vaishnav Achath 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

Re: [PATCH] mtd: spi-nor-core: Implement spi_nor_read_sfdp_dma_unsafe() for sfdp parse

2022-06-28 Thread Pratyush Yadav
On 03/06/22 12:31PM, Vaishnav Achath 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

[PATCH] mtd: spi-nor-core: Implement spi_nor_read_sfdp_dma_unsafe() for sfdp parse

2022-06-03 Thread Vaishnav Achath
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