commit | 1d5ceff25aa1edcaf84e7ee26fdcc746cb245af8 | [log] [tgz] |
---|---|---|
author | Tudor.Ambarus@microchip.com <Tudor.Ambarus@microchip.com> | Fri Nov 09 16:56:54 2018 +0000 |
committer | Boris Brezillon <boris.brezillon@bootlin.com> | Tue Nov 13 20:37:34 2018 +0100 |
tree | da7f47c18937884279c137ddab6c769440a5252a | |
parent | b9f07cc8207a2a69496beec3f5a5a8372bacdfdc [diff] |
mtd: spi_nor: pass DMA-able buffer to spi_nor_read_raw() spi_nor_read_raw() calls nor->read() which might be implemented by the m25p80 driver. m25p80 uses the spi-mem layer which requires DMA-able in/out buffers. Pass kmalloc'ed dma buffer to spi_nor_read_raw(). Fixes: b038e8e3be72 ("mtd: spi-nor: parse SFDP Sector Map Parameter Table") Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>