net: thunderbolt: Unregister ThunderboltIP protocol handler when suspending
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 28 Sep 2018 09:21:17 +0000 (12:21 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Apr 2019 08:18:51 +0000 (11:18 +0300)
commit9872760eb7b1d4f6066ad8b560714a5d0a728fdb
tree8149d44e48dd3d333584c0d969ed66a23370017d
parentfd21b79e541e4666c938a344f3ad2df74b4f5120
net: thunderbolt: Unregister ThunderboltIP protocol handler when suspending

The XDomain protocol messages may start as soon as Thunderbolt control
channel is started. This means that if the other host starts sending
ThunderboltIP packets early enough they will be passed to the network
driver which then gets confused because its resume hook is not called
yet.

Fix this by unregistering the ThunderboltIP protocol handler when
suspending and registering it back on resume.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: David S. Miller <davem@davemloft.net>
drivers/net/thunderbolt.c