Re: [PATCH] spi: spi-bcm-qspi: Use new structure for SPI transfer delays

From: Mark Brown
Date: Thu Feb 27 2020 - 10:29:11 EST


On Thu, Feb 27, 2020 at 04:10:50PM +0200, Sergiu Cuciurean wrote:

> if (qt->byte >= qt->trans->len) {
> /* we're at the end of the spi_transfer */
> /* in TX mode, need to pause for a delay or CS change */
> - if (qt->trans->delay_usecs &&
> + if (qt->trans->delay.value &&
> + (qt->trans->delay.unit == SPI_DELAY_UNIT_USECS) &&

It doesn't seem ideal that if the delay ends up specified in a unit over
microseconds that we end up just ignoring the delay entirely. This
probably needs fixing in the core though, for example allowing the
driver to say what range of delays it can actually implement.

Attachment: signature.asc
Description: PGP signature