[PATCH 04/10] drivers: misc: k3_avs: Check return code while programming AVS
Manorit Chawdhry
m-chawdhry at ti.com
Tue Feb 6 13:21:11 CET 2024
Check if AVS could not be programmed and print a warning.
Signed-off-by: Manorit Chawdhry <m-chawdhry at ti.com>
---
drivers/misc/k3_avs.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/misc/k3_avs.c b/drivers/misc/k3_avs.c
index 02cd90f9d12c..e20dc6755c29 100644
--- a/drivers/misc/k3_avs.c
+++ b/drivers/misc/k3_avs.c
@@ -490,7 +490,10 @@ static int k3_avs_probe(struct udevice *dev)
if (vd->flags & VD_FLAG_INIT_DONE)
continue;
- k3_avs_program_voltage(priv, vd, vd->opp);
+ ret = k3_avs_program_voltage(priv, vd, vd->opp);
+ if (ret)
+ dev_warn(dev, "Could not program AVS voltage for VD%d\n",
+ vd->id);
}
if (!device_is_compatible(priv->dev, "ti,am654-avs"))
--
2.43.0
More information about the U-Boot
mailing list