mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] soc: imx: gpcv2: skip registering devices for unavailable power domains
@ 2019-10-30 11:16 Lucas Stach
  2019-10-30 11:16 ` [PATCH 2/2] ARM: zii-imx8mq-dev: disable GPU and VPU power domain in DT Lucas Stach
  0 siblings, 1 reply; 3+ messages in thread
From: Lucas Stach @ 2019-10-30 11:16 UTC (permalink / raw)
  To: barebox

Allows to disable domains in the DT, as we don't need all of them in
Barebox.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/soc/imx/gpcv2.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
index bc373ecf40cc..7d33e8297829 100644
--- a/drivers/soc/imx/gpcv2.c
+++ b/drivers/soc/imx/gpcv2.c
@@ -449,6 +449,10 @@ static int imx_gpcv2_probe(struct device_d *dev)
 		struct device_d *pd_dev;
 		struct imx_pgc_domain *domain;
 		u32 domain_index;
+
+		if (!of_device_is_available(np))
+			continue;
+
 		ret = of_property_read_u32(np, "reg", &domain_index);
 		if (ret) {
 			dev_err(dev, "Failed to read 'reg' property\n");
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-11-04  8:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-30 11:16 [PATCH 1/2] soc: imx: gpcv2: skip registering devices for unavailable power domains Lucas Stach
2019-10-30 11:16 ` [PATCH 2/2] ARM: zii-imx8mq-dev: disable GPU and VPU power domain in DT Lucas Stach
2019-11-04  8:11   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox