Re: [PATCH v7 3/5] usb: host: ohci-sm501: init genalloc for local memory

From: Christoph Hellwig
Date: Tue Jun 25 2019 - 02:00:39 EST


On Mon, Jun 24, 2019 at 02:59:16PM +0200, Fredrik Noring wrote:
> Hi Christoph,
>
> > Can you send me the patch formally so that I can queue it up for the
> > dma-mapping tree?
>
> That patch would be detrimental to local memory devices, as previously
> discussed, so I would like to suggest a much better approach, as shown below,
> where allocations are aligned as required but not necessarily much more than
> that.

This looks sensible to me. Can you submit it with a proper patch
description and split into a separate patch for genalloc vs the user of
the new interface?