Re: [PATCH 01/28] net: thunderbolt: Unregister ThunderboltIP protocol handler when suspending

From: David Miller
Date: Tue Jan 29 2019 - 13:10:27 EST


From: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>
Date: Tue, 29 Jan 2019 18:01:16 +0300

> 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@xxxxxxxxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>