soc: microchip: mpfs: print service status in warning message

Now that resp_status is set for failed services, print the status in the
error path's warning.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
This commit is contained in:
Conor Dooley 2023-10-20 14:18:41 +01:00
parent 742aa6c563
commit a8f00589be

View File

@ -66,7 +66,9 @@ int mpfs_blocking_transaction(struct mpfs_sys_controller *sys_controller, struct
*/
if (!wait_for_completion_timeout(&sys_controller->c, timeout)) {
ret = -EBADMSG;
dev_warn(sys_controller->client.dev, "MPFS sys controller service failed\n");
dev_warn(sys_controller->client.dev,
"MPFS sys controller service failed with status: %d\n",
msg->response->resp_status);
} else {
ret = 0;
}