• F
    spi: davinci: use rx buffer as dummy tx buffer · 6b3a631e
    Frode Isaksen 提交于
    When doing rx-only transfer, the transfer will fail
    if the number of SG entries exceeds 20.
    This happens because the eDMA DMA engine is limited
    to 20 SG entries in one transaction, and when the
    DMA transcation is resumed (which takes > 150us),
    rx errors occurs because the slave is still transmitting.
    Fix this by using the rx buffer as the dummy tx buffer,
    so that resuming the rx transcation happens at the same
    time as resuming the tx transcation.
    Signed-off-by: NFrode Isaksen <fisaksen@baylibre.com>
    Signed-off-by: NMark Brown <broonie@kernel.org>
    6b3a631e
spi-davinci.c 27.8 KB