aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <[email protected]>2022-04-06 13:28:32 +0000
committerMark Brown <[email protected]>2022-04-13 13:43:58 +0000
commitf1d388f216aeb41a5df518815ae559d14a6d438e (patch)
tree4ea7ea27c0496898ad52b036432e172c66c951c1 /tools/perf/util/c++/clang.cpp
parentspi: intel: Add support for Raptor Lake-S SPI serial flash (diff)
downloadkernel-f1d388f216aeb41a5df518815ae559d14a6d438e.tar.gz
kernel-f1d388f216aeb41a5df518815ae559d14a6d438e.zip
spi: cadence-quadspi: fix incorrect supports_op() return value
Since the conversion to spi-mem, the driver advertised support for various operations that cqspi_set_protocol() was never expected to handle correctly - in particuar all non-DTR operations with command or address buswidth > 1. For DTR, all operations except for 8-8-8 would fail, as cqspi_set_protocol() returns -EINVAL. In non-DTR mode, this resulted in data corruption for SPI-NOR flashes that support such operations. As a minimal fix that can be backported to stable kernels, simply disallow the unsupported operations again to avoid this issue. Fixes: a314f6367787 ("mtd: spi-nor: Convert cadence-quadspi to use spi-mem framework") Signed-off-by: Matthias Schiffer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions