mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 02:25:58 +00:00
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 <javier.carrasco@wolfvision.net> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20240606-tps6598x_fw_update_log-v1-2-2b5b8369a0ba@wolfvision.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5315052d3c
commit
916b8e5fa7
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user