]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaaf99702dc612bd17c774cb2e2af97faa76e577a
tree3a01dbd453ac83c97c44d18ebc1b59e0ff2a61c0
parent830c16efd3192a0556bd429931b332b008dc72b7
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