]> 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)
commitfcb3a28390277e40e38f682678a9e25ecfafa345
tree3a01dbd453ac83c97c44d18ebc1b59e0ff2a61c0
parent14d22ef8941bd2289e511668715c5e0ef97018bd
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