]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32fef9f3586d8415b9423b0016b1bf213b44c3cf
treeeee828786be94cb00638fd9f35337c1b6780b63e
parentdbb68a873e9c35ce66a4080641c291fb8b2e64fc
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