]> git.baikalelectronics.ru Git - kernel.git/commit
thunderbolt: Drop sequence number check from tb_xdomain_match()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 25 Oct 2017 09:27:34 +0000 (12:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 03:00:00 +0000 (12:00 +0900)
commit7ebf69ae13d45570da39bafa88368668eaf3fb3a
treefdb309bb341cbb8eae0be40250815d44efaf9f91
parent5dc8d78c67deef05db361eb2d28e5d598fe3edb9
thunderbolt: Drop sequence number check from tb_xdomain_match()

Commit 98366b6524e6 ("thunderbolt: Fix a couple right shifting to zero
bugs") revealed an issue that was previously hidden because we never
actually compared received XDomain message sequence numbers properly.
The idea with these sequence numbers is that the responding host uses
the same sequence number that was in the request packet which we can
then check at the requesting host.

However, testing against macOS it looks like it does not follow this but
instead uses some other logic. Windows driver on the other hand handles
it the same way than Linux.

In order to be able to talk to macOS again, fix this so that we drop the
whole sequence number check. This effectively works exactly the same
than it worked before the aforementioned commit. This also follows the
logic the original P2P networking code used.

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