From: Javier Carrasco Date: Thu, 6 Jun 2024 09:03:56 +0000 (+0200) Subject: usb: typec: tipd: add error log to provide firmware name and size X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=916b8e5fa73d399a61156da7d914abfae74b962b;p=users%2Fjedix%2Flinux-maple.git usb: typec: tipd: add error log to provide firmware name and size The current error logs do not show the firmware name and size for the tps6598x. On the other hand, this information is provided for the tps25750. Both implementations have access to that information, and the existing message for the tps25750 can be used for the tps6598x without extra modifications. Signed-off-by: Javier Carrasco Reviewed-by: Heikki Krogerus Link: https://lore.kernel.org/r/20240606-tps6598x_fw_update_log-v1-2-2b5b8369a0ba@wolfvision.net Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c index 851b0d02727a1..58f6eeffd0707 100644 --- a/drivers/usb/typec/tipd/core.c +++ b/drivers/usb/typec/tipd/core.c @@ -1195,6 +1195,10 @@ static int tps6598x_apply_patch(struct tps6598x *tps) release_fw: release_firmware(fw); + if (ret) { + dev_err(tps->dev, "Failed to write patch %s of %zu bytes\n", + firmware_name, fw->size); + } return ret; };