]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 09:53:00 +0000 (11:53 +0200)
commit18d4decc62babc630a98ee05f1362dcde4875c12
treef84a41aa021ec4fd20fcee050317ea9bdb7d410e
parente86a0475c5207eb24bee62b9377e4457323ecd37
net: thunderbolt: Unregister ThunderboltIP protocol handler when suspending

[ Upstream commit 9872760eb7b1d4f6066ad8b560714a5d0a728fdb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/thunderbolt.c