• Clark Wang's avatar
    spi: lpspi: Improve the stability of lpspi data transmission · c23fdef8
    Clark Wang authored
    Use SR_TDF to judge if need to send data, and SR_FCF is to judge if
    transmission end and to replace the waiting after transmission end.
    This waiting has no actual meaning, for module will set the FCF
    flag at the real end.
    
    The changes of interrupt flag and ISR function reduce the times of
    calling ISR. The use of the FCF flag improves the stability of the
    data transmission. These two points generally improve the data
    transfer speed of lpspi, especially when it is set to slave mode
    it can support higher transfer speed of the host.
    
    After making these changes, there is no need to use
    fsl_lpspi_txfifo_empty(), so remove it.
    Signed-off-by: default avatarClark Wang <xiaoning.wang@nxp.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    c23fdef8
spi-fsl-lpspi.c 13.4 KB