ucsi_ccg: Don't show failed to get FW build information error
[ Upstream commitc160068527] 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:5c9ae5a875("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> Link: https://lore.kernel.org/r/20250221054137.1631765-2-superm1@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d72a858504
commit
a17a3db6d4
@@ -1433,11 +1433,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) {
|
||||
|
||||
Reference in New Issue
Block a user