diff options
author | Tom Rini <trini@konsulko.com> | 2020-04-30 18:05:15 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-30 18:05:15 -0400 |
commit | b641dd3ec8dc3f6b18d2fa945ac3ab597063d191 (patch) | |
tree | 98fe84b2d017589f42da3a410f27c2358fd49ddd /drivers/spi/spi-mem.c | |
parent | 78021b63373de32335bd204471d6cb7c7e18bc52 (diff) | |
parent | 286bcdb40f11def282117e16401bb85502e426a8 (diff) |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-spi
- distro boot support for SPI flash
- sifive spi flash driver
Diffstat (limited to 'drivers/spi/spi-mem.c')
-rw-r--r-- | drivers/spi/spi-mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c index e900c997bd..ffbe20c5b1 100644 --- a/drivers/spi/spi-mem.c +++ b/drivers/spi/spi-mem.c @@ -153,7 +153,7 @@ bool spi_mem_default_supports_op(struct spi_slave *slave, spi_check_buswidth_req(slave, op->dummy.buswidth, true)) return false; - if (op->data.nbytes && + if (op->data.dir != SPI_MEM_NO_DATA && spi_check_buswidth_req(slave, op->data.buswidth, op->data.dir == SPI_MEM_DATA_OUT)) return false; |