platform/x86: intel_scu_ipc: Log more information if SCU IPC command fails
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 16 Apr 2020 08:15:34 +0000 (11:15 +0300)
committerLee Jones <lee.jones@linaro.org>
Fri, 24 Apr 2020 10:17:18 +0000 (11:17 +0100)
commitea608f25fa09b520400e168b4472660cd9dc9c55
treeeee828786be94cb00638fd9f35337c1b6780b63e
parent54b34aa0a7295c0fc82c72c15bf42c05ad720d5f
platform/x86: intel_scu_ipc: Log more information if SCU IPC command fails

Currently we only log an error if the command times out which makes it
hard to figure out the failing command. This changes the driver to log
command and subcommand with the error code which should make debugging
easier. This also allows us to simplify the callers as they don't need
to log these errors themselves.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/platform/x86/intel_scu_ipc.c