Re: [PATCH 3/3] PCI: keystone: Set DMA mask and coherent DMA mask

From: Christoph Hellwig
Date: Wed Nov 10 2021 - 02:36:27 EST


On Wed, Nov 10, 2021 at 01:03:43PM +0530, Kishon Vijay Abraham I wrote:
> + if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48)) &&
> + dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32))) {

There is no need to fall back to a smaller mask, the core DMA code
just cares about the addressability of the device.