thunderbolt: icm: Ignore mailbox errors in icm_suspend()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 24 Jul 2017 23:31:00 +0000 (01:31 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 31 Jul 2017 11:24:29 +0000 (13:24 +0200)
commita684c5b1887cbb95d624e33574fabf8a5ca599e9
tree3a01dbd453ac83c97c44d18ebc1b59e0ff2a61c0
parent520eccdfe187591a51ea9ab4c1a024ae4d0f68d9
thunderbolt: icm: Ignore mailbox errors in icm_suspend()

On one of my test machines nhi_mailbox_cmd() called from icm_suspend()
times out and returnes an error which then is propagated to the
caller and causes the entire system suspend to be aborted which isn't
very useful.

Instead of aborting system suspend, print the error into the log
and continue.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Michael Jamet <michael.jamet@intel.com>
drivers/thunderbolt/icm.c