linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] soc: sunxi: mbus: Only build the driver on ARM/ARM64
@ 2022-07-02  3:25 Samuel Holland
  2022-07-02 19:12 ` Jernej Škrabec
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Holland @ 2022-07-02  3:25 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec
  Cc: Samuel Holland, linux-arm-kernel, linux-kernel, linux-sunxi

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] soc: sunxi: mbus: Only build the driver on ARM/ARM64
  2022-07-02  3:25 [PATCH] soc: sunxi: mbus: Only build the driver on ARM/ARM64 Samuel Holland
@ 2022-07-02 19:12 ` Jernej Škrabec
  2022-07-05 20:08   ` Jernej Škrabec
  0 siblings, 1 reply; 3+ messages in thread
From: Jernej Škrabec @ 2022-07-02 19:12 UTC (permalink / raw)
  To: Chen-Yu Tsai, Samuel Holland
  Cc: Samuel Holland, linux-arm-kernel, linux-kernel, linux-sunxi

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re: [PATCH] soc: sunxi: mbus: Only build the driver on ARM/ARM64
  2022-07-02 19:12 ` Jernej Škrabec
@ 2022-07-05 20:08   ` Jernej Škrabec
  0 siblings, 0 replies; 3+ messages in thread
From: Jernej Škrabec @ 2022-07-05 20:08 UTC (permalink / raw)
  To: Chen-Yu Tsai, Samuel Holland
  Cc: Samuel Holland, linux-arm-kernel, linux-kernel, linux-sunxi

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-05 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-02  3:25 [PATCH] soc: sunxi: mbus: Only build the driver on ARM/ARM64 Samuel Holland
2022-07-02 19:12 ` Jernej Škrabec
2022-07-05 20:08   ` Jernej Škrabec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).