Re: [RFC] ARM: sa1100/assabet: move dmabounce hack to ohci driver

From: Arnd Bergmann
Date: Wed Feb 02 2022 - 03:05:47 EST


On Wed, Feb 2, 2022 at 12:10 AM Arnd Bergmann <arnd@xxxxxxxxxx> wrote:
>
> while this part would not work if dma_alloc_flags() ends up getting
> memory that is not accessible. At the minimum I need to drop the
> machine_is_assabet() check and always allocate a safe buffer to
> back hcd->local_mem regardless of the machine.

I double-checked this to ensure we don't have to check for sa1100
vs pxa instead, and I found that all three sa1100 platforms with sa1111
(assabet/neponset, badge4, jornada720) enable DMA, but the one
pxa machine (lubbock) has the DMA mask set to 0 and won't
be able to use OHCI anyway.

Arnd