All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Mario Limonciello <superm1@kernel.org>
Cc: mario.limonciello@amd.com, gregkh@linuxfoundation.org,
	ajayg@nvidia.com, linux-usb@vger.kernel.org
Subject: Re: [PATCH 1/2] ucsi_ccg: Don't show failed to get FW build information error
Date: Wed, 26 Feb 2025 12:00:41 +0200	[thread overview]
Message-ID: <Z77mSfPDQptt5yrL@kuha.fi.intel.com> (raw)
In-Reply-To: <20250221054137.1631765-2-superm1@kernel.org>

On Thu, Feb 20, 2025 at 11:40:03PM -0600, Mario Limonciello wrote:
> From: Mario Limonciello <mario.limonciello@amd.com>
> 
> The error `failed to get FW build information` is added for what looks
> to be for misdetection of the device property firmware-name.
> 
> If the property is missing (such as on non-nvidia HW) this error shows up.
> Move the error into the scope of the property parser for "firmware-name"
> to avoid showing errors on systems without the firmware-name property.
> 
> Fixes: 5c9ae5a87573d ("usb: typec: ucsi: ccg: add firmware flashing support")
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>

> ---
>  drivers/usb/typec/ucsi/ucsi_ccg.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c
> index 740171f24ef9f..663aca9421410 100644
> --- a/drivers/usb/typec/ucsi/ucsi_ccg.c
> +++ b/drivers/usb/typec/ucsi/ucsi_ccg.c
> @@ -1432,11 +1432,10 @@ static int ucsi_ccg_probe(struct i2c_client *client)
>  			uc->fw_build = CCG_FW_BUILD_NVIDIA_TEGRA;
>  		else if (!strcmp(fw_name, "nvidia,gpu"))
>  			uc->fw_build = CCG_FW_BUILD_NVIDIA;
> +		if (!uc->fw_build)
> +			dev_err(uc->dev, "failed to get FW build information\n");
>  	}
>  
> -	if (!uc->fw_build)
> -		dev_err(uc->dev, "failed to get FW build information\n");
> -
>  	/* reset ccg device and initialize ucsi */
>  	status = ucsi_ccg_init(uc);
>  	if (status < 0) {
> -- 
> 2.43.0

-- 
heikki

  parent reply	other threads:[~2025-02-26 10:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-21  5:40 [PATCH 0/2] ucsi_ccg: Compat with non-NVIDIA Mario Limonciello
2025-02-21  5:40 ` [PATCH 1/2] ucsi_ccg: Don't show failed to get FW build information error Mario Limonciello
2025-02-21  6:45   ` Greg KH
2025-02-23  2:41     ` Mario Limonciello
2025-02-26 10:00   ` Heikki Krogerus [this message]
2025-02-21  5:40 ` [PATCH 2/2] ucsi_ccg: Don't show non-functional attributes Mario Limonciello
2025-02-26 10:01   ` Heikki Krogerus

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=Z77mSfPDQptt5yrL@kuha.fi.intel.com \
    --to=heikki.krogerus@linux.intel.com \
    --cc=ajayg@nvidia.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=superm1@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.