[PATCH] soc: sunxi: mbus: Only build the driver on ARM/ARM64

Samuel Holland posted 1 patch 3 years, 9 months ago
drivers/soc/sunxi/Kconfig | 1 +
1 file changed, 1 insertion(+)
[PATCH] soc: sunxi: mbus: Only build the driver on ARM/ARM64
Posted by Samuel Holland 3 years, 9 months ago
This driver exists as a workaround for old devicetrees which are missing
interconnects properties, so it is only useful for those specific
platforms, which all happen to be ARM or ARM64.

This solves the issue that the driver fails to build on RISC-V, where
PHYS_OFFSET is not defined.

Signed-off-by: Samuel Holland <samuel@sholland.org>
---

 drivers/soc/sunxi/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/sunxi/Kconfig b/drivers/soc/sunxi/Kconfig
index 1fef0e711056..8aecbc9b1976 100644
--- a/drivers/soc/sunxi/Kconfig
+++ b/drivers/soc/sunxi/Kconfig
@@ -6,6 +6,7 @@
 config SUNXI_MBUS
 	bool
 	default ARCH_SUNXI
+	depends on ARM || ARM64
 	help
 	  Say y to enable the fixups needed to support the Allwinner
 	  MBUS DMA quirks.
-- 
2.35.1
Re: [PATCH] soc: sunxi: mbus: Only build the driver on ARM/ARM64
Posted by Jernej Škrabec 3 years, 9 months ago
Dne sobota, 02. julij 2022 ob 05:25:20 CEST je Samuel Holland napisal(a):
> This driver exists as a workaround for old devicetrees which are missing
> interconnects properties, so it is only useful for those specific
> platforms, which all happen to be ARM or ARM64.
> 
> This solves the issue that the driver fails to build on RISC-V, where
> PHYS_OFFSET is not defined.
> 
> Signed-off-by: Samuel Holland <samuel@sholland.org>

Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej
Re: Re: [PATCH] soc: sunxi: mbus: Only build the driver on ARM/ARM64
Posted by Jernej Škrabec 3 years, 9 months ago
Dne sobota, 02. julij 2022 ob 21:12:04 CEST je Jernej Škrabec napisal(a):
> Dne sobota, 02. julij 2022 ob 05:25:20 CEST je Samuel Holland napisal(a):
> > This driver exists as a workaround for old devicetrees which are missing
> > interconnects properties, so it is only useful for those specific
> > platforms, which all happen to be ARM or ARM64.
> > 
> > This solves the issue that the driver fails to build on RISC-V, where
> > PHYS_OFFSET is not defined.
> > 
> > Signed-off-by: Samuel Holland <samuel@sholland.org>
> 
> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Applied, thanks!
 
Best regards,
Jernej