]> www.infradead.org Git - users/dwmw2/linux.git/commit
thunderbolt: Resume control channel after hibernation image is created
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 19 Dec 2017 09:44:56 +0000 (12:44 +0300)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:33 +0000 (21:36 -0400)
commitc2fbb66c81b5ed656fd03b1ef43ad1dc621ccbc4
tree4ae1fe5f8e42d64a5499ec448aa32d0541e04830
parent1a50f4c4543876df156c8f595bb584509af751dd
thunderbolt: Resume control channel after hibernation image is created

[ Upstream commit f2a659f7d8d5da803836583aa16df06bdf324252 ]

The driver misses implementation of PM hook that undoes what
->freeze_noirq() does after the hibernation image is created. This means
the control channel is not resumed properly and the Thunderbolt bus
becomes useless in later stages of hibernation (when the image is stored
or if the operation fails).

Fix this by pointing ->thaw_noirq to driver nhi_resume_noirq(). This
makes sure the control channel is resumed properly.

Fixes: 23dd5bb49d98 ("thunderbolt: Add suspend/hibernate support")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/thunderbolt/nhi.c