projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ed6692
)
spi: orion: Support spi_xfer->word_delay_usecs
author
Jan Kundrát
<jan.kundrat@cesnet.cz>
Thu, 7 Mar 2019 14:38:35 +0000
(15:38 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 18 Mar 2019 12:18:42 +0000
(12:18 +0000)
Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-orion.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-orion.c
b/drivers/spi/spi-orion.c
index 7f280567093ec674b705e257cb7c25f132526316..25ea4a9e0dbca69cbe739fcbdcc047309ba4c7f5 100644
(file)
--- a/
drivers/spi/spi-orion.c
+++ b/
drivers/spi/spi-orion.c
@@
-470,6
+470,8
@@
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);
} while (count);
} else if (word_len == 16) {
const u16 *tx = xfer->tx_buf;
@@
-479,6
+481,8
@@
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);
} while (count);
}