Re: use of dma_direct_set_offset in (allwinner) drivers

From: Christoph Hellwig
Date: Wed Nov 04 2020 - 05:30:13 EST


On Wed, Nov 04, 2020 at 10:15:49AM +0000, Robin Murphy wrote:
> How about having something in the platform code that keys off the top-level
> SoC compatible and uses a bus notifier to create offsets for the relevant
> devices if an MBUS description is missing? At least that way the workaround
> could be confined to a single dedicated place and look somewhat similar to
> other special cases like sta2x11, rather than being duplicated all over the
> place.

Yes, that would be the right way to handle the issue.