Commit 75d2a97
committed
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: b038e8e ("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>
(cherry picked from commit 1d5ceff)
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>1 parent f387ab1 commit 75d2a97
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2104 | 2104 | | |
2105 | 2105 | | |
2106 | 2106 | | |
2107 | | - | |
| 2107 | + | |
2108 | 2108 | | |
2109 | 2109 | | |
2110 | 2110 | | |
| |||
2811 | 2811 | | |
2812 | 2812 | | |
2813 | 2813 | | |
| 2814 | + | |
2814 | 2815 | | |
2815 | 2816 | | |
2816 | 2817 | | |
2817 | 2818 | | |
2818 | | - | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
2819 | 2825 | | |
2820 | 2826 | | |
2821 | 2827 | | |
| |||
2833 | 2839 | | |
2834 | 2840 | | |
2835 | 2841 | | |
2836 | | - | |
| 2842 | + | |
2837 | 2843 | | |
2838 | 2844 | | |
2839 | 2845 | | |
| |||
2843 | 2849 | | |
2844 | 2850 | | |
2845 | 2851 | | |
2846 | | - | |
| 2852 | + | |
2847 | 2853 | | |
2848 | 2854 | | |
2849 | 2855 | | |
| |||
2874 | 2880 | | |
2875 | 2881 | | |
2876 | 2882 | | |
| 2883 | + | |
2877 | 2884 | | |
2878 | 2885 | | |
2879 | 2886 | | |
| |||
0 commit comments