soc: microchip: mpfs: print service status in warning message
authorConor Dooley <conor.dooley@microchip.com>
Fri, 20 Oct 2023 13:18:41 +0000 (14:18 +0100)
committerConor Dooley <conor.dooley@microchip.com>
Wed, 6 Dec 2023 12:06:18 +0000 (12:06 +0000)
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>
drivers/soc/microchip/mpfs-sys-controller.c

index c7e063993d9274da1cff9aa70d12cd63f58c0934..d438efde3278208faa7977e21fc1f5ce5f3bfc92 100644 (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;
        }