fixup! spi: dw: Wait for idle after TX#6649
Conversation
Relax a bit harder - transmission of the last bits may take a while. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
@P33M Surprisingly, this seems to reduce the delay between the final SCLK and CS going high to around 2.6us, whereas before it was at least 4us. |
|
It'll be using a more accurate guess as to when the shift register will go idle, but I'm surprised that spamming reads of the status register isn't faster. That said, round-trip time is ~1.6us for RP1 register reads. |
|
The test program I'm using sets SCLK to 2MHz. At that speed, a single byte is transmitted in 4us. Perhaps the more heavy-weight |
See: raspberrypi/linux#6636 kernel: misc: rp1-pio: SM_CONFIG_XFER32 = larger DMA bufs See: raspberrypi/linux#6640 kernel: Handle probe dependencies and hard errors better See: raspberrypi/linux#6645 kernel: spi: dw: Wait for idle after TX See: raspberrypi/linux#6646 See: raspberrypi/linux#6649
See: raspberrypi/linux#6636 kernel: misc: rp1-pio: SM_CONFIG_XFER32 = larger DMA bufs See: raspberrypi/linux#6640 kernel: Handle probe dependencies and hard errors better See: raspberrypi/linux#6645 kernel: spi: dw: Wait for idle after TX See: raspberrypi/linux#6646 See: raspberrypi/linux#6649
See: raspberrypi/linux#6636 kernel: misc: rp1-pio: SM_CONFIG_XFER32 = larger DMA bufs See: raspberrypi/linux#6640 kernel: Handle probe dependencies and hard errors better See: raspberrypi/linux#6645 kernel: spi: dw: Wait for idle after TX See: raspberrypi/linux#6646 See: raspberrypi/linux#6649
Relax a bit harder - transmission of the last bits may take a while.