diff options
author | Daniel Golle <[email protected]> | 2023-01-19 03:45:43 +0000 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2023-01-23 11:37:23 +0100 |
commit | ebed787a0becb9354f0a23620a5130cccd6c730c (patch) | |
tree | 16ca650943d5deee05be61803b026606533f6749 /tools/perf/scripts/python/stackcollapse.py | |
parent | 43651e60aa167974955b23f73a25eb79886ab6d0 (diff) |
mtd: spinand: macronix: use scratch buffer for DMA operation
The mx35lf1ge4ab_get_eccsr() function uses an SPI DMA operation to
read the eccsr, hence the buffer should not be on stack. Since commit
380583227c0c7f ("spi: spi-mem: Add extra sanity checks on the op param")
the kernel emmits a warning and blocks such operations.
Use the scratch buffer to get eccsr instead of trying to directly read
into a stack-allocated variable.
Signed-off-by: Daniel Golle <[email protected]>
Reviewed-by: Dhruva Gole <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions