Re: [PATCH 2/2] ARM: dma-mapping: allow larger DMA mask than supported

2019-05-21 Thread Russell King - ARM Linux admin
On Tue, May 21, 2019 at 02:47:29PM +0200, Christoph Hellwig wrote: > Since Linux 5.1 we allow drivers to just set the largest DMA mask they > support instead of falling back to smaller ones. This doesn't make sense. "they" is confusing - why would a driver set a DMA mask larger than the driver

Re: [PATCH 2/2] ARM: dma-mapping: allow larger DMA mask than supported

2019-05-21 Thread Christoph Hellwig
On Tue, May 21, 2019 at 02:00:47PM +0100, Russell King - ARM Linux admin wrote: > On Tue, May 21, 2019 at 02:47:29PM +0200, Christoph Hellwig wrote: > > Since Linux 5.1 we allow drivers to just set the largest DMA mask they > > support instead of falling back to smaller ones. > > This doesn't

[PATCH 2/2] ARM: dma-mapping: allow larger DMA mask than supported

2019-05-21 Thread Christoph Hellwig
Since Linux 5.1 we allow drivers to just set the largest DMA mask they support instead of falling back to smaller ones. When fixing up all the dma ops instances to allow for this behavior the arm direct mapping code was missed. Fix it up by removing the sanity check, as all the actual mapping