imx7: dev->coherent_dma_mask NULL warning

Fabio Estevam festevam at gmail.com
Wed Aug 18 07:47:49 PDT 2021


On Wed, Aug 18, 2021 at 10:37 AM Fabio Estevam <festevam at gmail.com> wrote:
>
> Hi Christoph,
>
> On Wed, Aug 18, 2021 at 10:28 AM Christoph Hellwig <hch at lst.de> wrote:
> >
> > On Wed, Aug 18, 2021 at 06:31:19AM -0300, Fabio Estevam wrote:
> > > Correct, on i.MX7 the ath10k Wifi chip connects via SDIO.
> > >
> > > Is there a way to avoid the WARN_ON_ONCE(!dev->coherent_dma_mask)
> > > to happen in this case?
> >
> > The way to avoid it is by stoppind to use dma_alloc_attrs/coherent
> > on a device that is not DMA capable.
>
> Understood, thanks.
>
> Maybe something like this (untested)?
> https://pastebin.com/xTZqtRqD

Tested it on the board and this seems to work fine. I will submit a
proper patch.

Thanks



More information about the ath10k mailing list