diff options
author | Pratyush Yadav <p.yadav@ti.com> | 2021-06-25 22:17:03 +0300 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2021-06-28 09:23:48 +0300 |
commit | a1eb40b70b40d208a72765c0f56cffed4e22ff30 (patch) | |
tree | e476dec15c594135cd160ffacde6ab0ccbf2ada6 /drivers/spi/spi-mem.c | |
parent | 0d7066bce23d3732cd3a59176ccd7a3ee7be9d63 (diff) | |
download | u-boot-a1eb40b70b40d208a72765c0f56cffed4e22ff30.tar.xz |
spi: spi-mem: allow specifying whether an op is DTR or not
Each phase is given a separate 'dtr' field so mixed protocols like
4S-4D-4D can be supported.
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'drivers/spi/spi-mem.c')
-rw-r--r-- | drivers/spi/spi-mem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c index c095ae9505..427f7c13c5 100644 --- a/drivers/spi/spi-mem.c +++ b/drivers/spi/spi-mem.c @@ -164,6 +164,9 @@ bool spi_mem_default_supports_op(struct spi_slave *slave, op->data.dir == SPI_MEM_DATA_OUT)) return false; + if (op->cmd.dtr || op->addr.dtr || op->dummy.dtr || op->data.dtr) + return false; + return true; } EXPORT_SYMBOL_GPL(spi_mem_default_supports_op); |