diff options
| author | Apurva Nandan <[email protected]> | 2021-07-16 23:25:03 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-08-05 19:18:10 +0000 |
| commit | 0395be967b067d99494113d78470574e86a02ed4 (patch) | |
| tree | 09a1efe48dddc022497cc63044668ef156ed1511 /lib/debugobjects.c | |
| parent | spi: mediatek: Fix fifo transfer (diff) | |
| download | kernel-0395be967b067d99494113d78470574e86a02ed4.tar.gz kernel-0395be967b067d99494113d78470574e86a02ed4.zip | |
spi: cadence-quadspi: Fix check condition for DTR ops
buswidth and dtr fields in spi_mem_op are only valid when the
corresponding spi_mem_op phase has a non-zero length. For example,
SPI NAND core doesn't set buswidth when using SPI_MEM_OP_NO_ADDR
phase.
Fix the dtr checks in set_protocol() and suppports_mem_op() to
ignore empty spi_mem_op phases, as checking for dtr field in
empty phase will result in false negatives.
Signed-off-by: Apurva Nandan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
