Re: [PATCH v3] usb: dwc3: support 64 bit DMA in platform driver

From: Christoph Hellwig
Date: Mon Jun 07 2021 - 06:05:22 EST


On Mon, Jun 07, 2021 at 09:25:43AM +0200, Arnd Bergmann wrote:
> This will now fail on machines with dwc3 connected to a 32-bit bus (or a
> bus that is accidentally not annotated as supporting 64-bit) when there is
> some memory that is not addressable through that bus.

No, it won't. dma_set_mask_and_coherent with a 64-bit mask will never
fail if dev->dma_mask is non-NULL.