Re: [PATCH] spi: mediatek: Manually set dma_ops for spi_master device

From: Mark Brown
Date: Tue Jan 24 2017 - 10:48:40 EST

On Tue, Jan 24, 2017 at 09:25:19PM +0800, Daniel Kurtz wrote:

> The master_spi device is not a platform, rather it is created
> in spi_alloc_device(), and its dma_ops are never set.

Which is good because it's not a physical device and doesn't do DMA.

> Alternatively, perhaps we should be using master->dev.parent to dma map bufs
> in the "no dma channel case".

Yes, exactly.

Attachment: signature.asc
Description: PGP signature