summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-orion.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2019-11-22 19:56:35 +0000
committerMark Brown <broonie@kernel.org>2019-11-22 19:56:35 +0000
commitca4196aa10087fe3ba3ce2383761898dc95b5e94 (patch)
treef870402f36377f3bde4b939da23dda18bc9bc862 /drivers/spi/spi-orion.c
parent8f3ed6d0b0db04db8297d951c26c809dd7b4778d (diff)
parentffa119f7c42d29be2dd759bb18cc4d1f45804c6b (diff)
downloadlinux-ca4196aa10087fe3ba3ce2383761898dc95b5e94.tar.gz
linux-ca4196aa10087fe3ba3ce2383761898dc95b5e94.tar.bz2
linux-ca4196aa10087fe3ba3ce2383761898dc95b5e94.zip
Merge branch 'spi-5.5' into spi-next
Diffstat (limited to 'drivers/spi/spi-orion.c')
-rw-r--r--drivers/spi/spi-orion.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c
index 81c991c4ddbf..c7266ef295fd 100644
--- a/drivers/spi/spi-orion.c
+++ b/drivers/spi/spi-orion.c
@@ -467,8 +467,7 @@ orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer)
if (orion_spi_write_read_8bit(spi, &tx, &rx) < 0)
goto out;
count--;
- if (xfer->word_delay_usecs)
- udelay(xfer->word_delay_usecs);
+ spi_delay_exec(&xfer->word_delay, xfer);
} while (count);
} else if (word_len == 16) {
const u16 *tx = xfer->tx_buf;
@@ -478,8 +477,7 @@ orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer)
if (orion_spi_write_read_16bit(spi, &tx, &rx) < 0)
goto out;
count -= 2;
- if (xfer->word_delay_usecs)
- udelay(xfer->word_delay_usecs);
+ spi_delay_exec(&xfer->word_delay, xfer);
} while (count);
}