diff mbox series

[v2] firmware: zynqmp: Skip loading config object for Versal

Message ID 20220824113443.7242-1-ashok.reddy.soma@xilinx.com
State Deferred
Delegated to: Tom Rini
Headers show
Series [v2] firmware: zynqmp: Skip loading config object for Versal | expand

Commit Message

Ashok Reddy Soma Aug. 24, 2022, 11:34 a.m. UTC
SET_CONFIGURATION is not yet implemented for Versal platforms. Skip
loading config object for Versal until support is added.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
---

Changes in v2:
 - Call zynqmp_pmufw_node only for ZynqMP platform.

CR-1136452
branch: master-next-test
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
---
 drivers/power/domain/zynqmp-power-domain.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Ashok Reddy Soma Aug. 24, 2022, 11:36 a.m. UTC | #1
Apologies, send this patch my mistake. Please ignore this patch.

Thanks,
Ashok

-----Original Message-----
From: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> 
Sent: Wednesday, August 24, 2022 5:05 PM
To: u-boot@lists.denx.de
Cc: jagan@amarulasolutions.com; Simek, Michal <michal.simek@amd.com>; git@xilinx.com; Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>; Soma, Ashok Reddy <ashok.reddy.soma@amd.com>
Subject: [UBOOT PATCH v2] firmware: zynqmp: Skip loading config object for Versal

SET_CONFIGURATION is not yet implemented for Versal platforms. Skip loading config object for Versal until support is added.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
---

Changes in v2:
 - Call zynqmp_pmufw_node only for ZynqMP platform.

CR-1136452
branch: master-next-test
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
---
 drivers/power/domain/zynqmp-power-domain.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/power/domain/zynqmp-power-domain.c b/drivers/power/domain/zynqmp-power-domain.c
index 6943658be4..adbbb5fdd9 100644
--- a/drivers/power/domain/zynqmp-power-domain.c
+++ b/drivers/power/domain/zynqmp-power-domain.c
@@ -25,7 +25,10 @@ static int zynqmp_power_domain_request(struct power_domain *power_domain)  {
 	dev_dbg(power_domain->dev, "Request for id: %ld\n", power_domain->id);
 
-	return zynqmp_pmufw_node(power_domain->id);
+	if (IS_ENABLED(CONFIG_ARCH_ZYNQMP))
+		return zynqmp_pmufw_node(power_domain->id);
+
+	return 0;
 }
 
 static int zynqmp_power_domain_free(struct power_domain *power_domain)
--
2.17.1
diff mbox series

Patch

diff --git a/drivers/power/domain/zynqmp-power-domain.c b/drivers/power/domain/zynqmp-power-domain.c
index 6943658be4..adbbb5fdd9 100644
--- a/drivers/power/domain/zynqmp-power-domain.c
+++ b/drivers/power/domain/zynqmp-power-domain.c
@@ -25,7 +25,10 @@  static int zynqmp_power_domain_request(struct power_domain *power_domain)
 {
 	dev_dbg(power_domain->dev, "Request for id: %ld\n", power_domain->id);
 
-	return zynqmp_pmufw_node(power_domain->id);
+	if (IS_ENABLED(CONFIG_ARCH_ZYNQMP))
+		return zynqmp_pmufw_node(power_domain->id);
+
+	return 0;
 }
 
 static int zynqmp_power_domain_free(struct power_domain *power_domain)