• Mark Brown's avatar
    spi: sh: Switch to using core message queue · e2185072
    Mark Brown authored
    We deprecated open coding of the transfer queue back in 2017 so it's high
    time we finished up converting drivers to use the standard message queue
    code. The SH driver is fairly straightforward so convert to use
    transfer_one_message(), it looks like the driver would be a good fit for
    transfer_one() with a little bit of updating but this smaller change seems
    safer.
    
    I'm not actually clear how the driver worked robustly previously, it
    clears SSA and CR1 when queueing a transfer which looks like it would
    interfere with any running transfer. This clearing has been moved to the
    start of the message transfer function.
    
    I'm also unclear how exactly the chip select is managed with this driver.
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    Link: https://lore.kernel.org/r/20220610154649.1707851-1-broonie@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    e2185072
spi-sh.c 10.2 KB