summary refs log tree commit diff
path: root/drivers/spi/spi-sun6i.c
diff options
context:
space:
mode:
authorPratyush Yadav <p.yadav@ti.com>2020-12-23 00:14:21 +0530
committerMark Brown <broonie@kernel.org>2021-01-06 13:08:43 +0000
commit888d517b992532df2b6115fbdc9620673ca7c651 (patch)
tree03f732189dad8130d5954d70b8e192f64f446562 /drivers/spi/spi-sun6i.c
parentceeda328edeeeeac7579e9dbf0610785a3b83d39 (diff)
downloadlinux-888d517b992532df2b6115fbdc9620673ca7c651.tar.gz
spi: cadence-quadspi: Set dummy cycles from STIG commands
If a command does not have an address phase it goes via the STIG path.
The dummy cycles are not initialized for the STIG commands. As a result,
STIG commands with dummy cycles will not work.

Initialize the dummy cycle field before issuing the STIG command to make
sure it is sent correctly. Move the code to calculate dummy cycle value
to a separate function so it is not repeated twice. DTR support will add
some more logic here to it is worth it to extract it out in a function.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20201222184425.7028-4-p.yadav@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-sun6i.c')
0 files changed, 0 insertions, 0 deletions