From: "Kumar, Udit" <u-kumar1@ti.com>
To: Manorit Chawdhry <m-chawdhry@ti.com>,
Jaehoon Chung <jh80.chung@samsung.com>
Cc: <u-boot@lists.denx.de>, Neha Malcom Francis <n-francis@ti.com>,
Keerthy J <j-keerthy@ti.com>, Aniket Limaye <a-limaye@ti.com>,
Tom Rini <trini@konsulko.com>,
Vignesh Raghavendra <vigneshr@ti.com>, Andrew Davis <afd@ti.com>,
Nishanth Menon <nm@ti.com>
Subject: Re: [PATCH v2 3/7] drivers: misc: k3_avs: Check return code while programming AVS
Date: Wed, 29 May 2024 09:53:13 +0530 [thread overview]
Message-ID: <fa14fd9c-2b6f-4a09-ab2f-01d90106cd2b@ti.com> (raw)
In-Reply-To: <20240528-b4-upstream-j721s2-avs-v2-3-df940f2309d0@ti.com>
On 5/28/2024 1:43 PM, Manorit Chawdhry wrote:
> Check if AVS could not be programmed and print a warning.
>
> Signed-off-by: Manorit Chawdhry <m-chawdhry@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 a0d7bb7595b3..d9037b4512c6 100644
> --- a/drivers/misc/k3_avs.c
> +++ b/drivers/misc/k3_avs.c
> @@ -489,7 +489,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);
Could you extend print with vd->opp as well.
With this change
Reviewed-by: Udit Kumar <u-kumar1@ti.com>
> }
>
> if (!device_is_compatible(priv->dev, "ti,am654-avs"))
>
next prev parent reply other threads:[~2024-05-29 4:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-28 8:12 [PATCH v2 0/7] Add AVS support for J721S2 Manorit Chawdhry
2024-05-28 8:13 ` [PATCH v2 1/7] power: pmic: tps65941: Add DM_PMIC dependency Manorit Chawdhry
2024-05-28 9:03 ` Neha Malcom Francis
2024-05-28 8:13 ` [PATCH v2 2/7] drivers: misc: k3_avs: Use soc_match_device instead of compatible Manorit Chawdhry
2024-05-29 4:21 ` Kumar, Udit
2024-06-13 14:20 ` Tom Rini
2024-05-28 8:13 ` [PATCH v2 3/7] drivers: misc: k3_avs: Check return code while programming AVS Manorit Chawdhry
2024-05-29 4:23 ` Kumar, Udit [this message]
2024-05-28 8:13 ` [PATCH v2 4/7] drivers: misc: k3_avs: Add AVS Support for J721S2 Manorit Chawdhry
2024-05-28 8:13 ` [PATCH v2 5/7] arm: mach-k3: j721s2_init: Initialize AVS Class 0 Manorit Chawdhry
2024-05-28 8:13 ` [PATCH v2 6/7] arm: dts: j721s2: Add VTM node in R5 Manorit Chawdhry
2024-05-28 8:13 ` [PATCH v2 7/7] configs: j721s2_evm_r5_defconfig: Add AVS Configs Manorit Chawdhry
2024-05-29 4:29 ` Kumar, Udit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fa14fd9c-2b6f-4a09-ab2f-01d90106cd2b@ti.com \
--to=u-kumar1@ti.com \
--cc=a-limaye@ti.com \
--cc=afd@ti.com \
--cc=j-keerthy@ti.com \
--cc=jh80.chung@samsung.com \
--cc=m-chawdhry@ti.com \
--cc=n-francis@ti.com \
--cc=nm@ti.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox