Skip to content
Unverified Commit f4b32390 authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Mark Brown
Browse files

spi: Introduce dspi_slave_abort() function for NXP's dspi SPI driver



This change provides the dspi_slave_abort() function, which is a callback
for slave_abort() method of SPI controller generic driver.

As in the SPI slave mode the transmission is driven by master, any
distortion may cause the slave to enter undefined internal state.
To avoid this problem the dspi_slave_abort() terminates all pending and
ongoing DMA transactions (with sync) and clears internal FIFOs.

Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
Link: https://lore.kernel.org/r/20190924110547.14770-3-lukma@denx.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3f049e7d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment