Re: [PATCH v3 5/8] mtd: spi-nor: cadence-quadspi: Handle probe deferral while requesting DMA channel

From: Tudor.Ambarus
Date: Mon Jun 01 2020 - 02:31:21 EST


On Monday, June 1, 2020 8:47:22 AM EEST Vignesh Raghavendra wrote:
> dma_request_chan_by_mask() can throw EPROBE_DEFER if DMA provider
> is not yet probed. Currently driver just falls back to using PIO mode
> (which is less efficient) in this case. Instead return probe deferral
> error as is so that driver will be re probed once DMA provider is
> available.
>
> Signed-off-by: Vignesh Raghavendra <vigneshr@xxxxxx>
> ---
> .../mtd/spi-nor/controllers/cadence-quadspi.c | 18 +++++++++++++-----
> 1 file changed, 13 insertions(+), 5 deletions(-)

Reviewed-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx>