soc: sunxi: Deal with the MBUS DMA offsets in a central place
authorMaxime Ripard <maxime@cerno.tech>
Fri, 6 Nov 2020 14:52:30 +0000 (15:52 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 18 Nov 2020 08:01:30 +0000 (09:01 +0100)
commitb4bdc4fbf8d01227702068703ae2cd82ff25c3db
tree9f3b78cb78afe8431a3f1e6b2a8ed37383173ace
parent957a1ea3599210e9996777a734ea5284eaef75c7
soc: sunxi: Deal with the MBUS DMA offsets in a central place

So far most of the drivers with the MBUS quirks had to duplicate the
code to deal with DT compatibility and enforcing the DMA offsets.

Let's move for a more maintainable solution by putting everything in a
notifier that would take care of setting up the DMA offsets for all the
MBUS devices.

Suggested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/soc/sunxi/Kconfig
drivers/soc/sunxi/Makefile
drivers/soc/sunxi/sunxi_mbus.c [new file with mode: 0644]