Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

From: Greg Kroah-Hartman
Date: Fri Mar 29 2019 - 12:03:41 EST


On Sat, Mar 30, 2019 at 02:40:16AM +0800, Zeng Tao wrote:
> There are two reasons for this patch:
> 1. There are some potential requirements for ion_alloc in kernel space,
> some media drivers need to allocate media buffers from ion instead of
> buddy or dma framework, this is more convient and clean very for media
> drivers. And In that case, ion is the only media buffer provider, it's
> more easier to maintain.

As this really is just DMA, what is wrong with the existing dma
framework that makes it hard to use? You have seen all of the changes
recently to it, right?

thanks,

greg k-h