ACPI/IORT: Don't set default coherent DMA mask
authorRobin Murphy <robin.murphy@arm.com>
Mon, 23 Jul 2018 22:16:11 +0000 (23:16 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 27 Jul 2018 17:01:06 +0000 (19:01 +0200)
commit6757cdae44449dec2af68cd4db0a5f9a30e66b38
tree261295beb90a0c9994e253dfbe46007a6c08974f
parent03bfdc31176cbe21e456f889ccbbf67568831149
ACPI/IORT: Don't set default coherent DMA mask

Now that we can track upstream DMA constraints properly with
bus_dma_mask instead of trying (and failing) to maintain it in
coherent_dma_mask, it doesn't make much sense for the firmware code to
be touching the latter at all. It's merely papering over bugs wherein a
driver has failed to call dma_set_coherent_mask() *and* the bus code has
not initialised any default value.

We don't really want to encourage more drivers coercing dma_mask so
we'll continue to fix that up if necessary, but add a warning to help
flush out any such buggy bus code that remains.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/acpi/arm64/iort.c