mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
power: zynqmp: Mask node already configured error
Do not return an error (ENODEV) from the request function if the node is already configured. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Link: https://lore.kernel.org/r/20230523124215.30915-3-stefan.herbrechtsmeier-oss@weidmueller.com Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
committed by
Michal Simek
parent
bc75a3465f
commit
d0f1af3ec0
@@ -23,12 +23,17 @@ static int zynqmp_pm_request_node(const u32 node, const u32 capabilities,
|
||||
|
||||
static int zynqmp_power_domain_request(struct power_domain *power_domain)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
dev_dbg(power_domain->dev, "Request for id: %ld\n", power_domain->id);
|
||||
|
||||
if (IS_ENABLED(CONFIG_ARCH_ZYNQMP))
|
||||
return zynqmp_pmufw_node(power_domain->id);
|
||||
if (IS_ENABLED(CONFIG_ARCH_ZYNQMP)) {
|
||||
ret = zynqmp_pmufw_node(power_domain->id);
|
||||
if (ret == -ENODEV)
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int zynqmp_power_domain_free(struct power_domain *power_domain)
|
||||
|
||||
Reference in New Issue
Block a user