spi: cadence-qspi: always use direct mode on reads if enabled
Signed-off-by: Heinrich Toews <ht@twx-software.de>
This commit is contained in:
@@ -1315,7 +1315,7 @@ static int cqspi_direct_read_execute(struct cqspi_flash_pdata *f_pdata,
|
||||
dma_addr_t dma_dst;
|
||||
struct device *ddev;
|
||||
|
||||
if (!cqspi->rx_chan || !virt_addr_valid(buf)) {
|
||||
if (cqspi->use_direct_mode) {
|
||||
memcpy_fromio(buf, cqspi->ahb_base + from, len);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user