]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thunderbolt: Introduce tb_port_path_direction_downstream()
authorGil Fine <gil.fine@linux.intel.com>
Tue, 1 Oct 2024 17:31:04 +0000 (17:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:30:01 +0000 (16:30 +0200)
commit18dcdadc994125ccd42288184a52b1867315e7fd
treece12f9c8e2f91687400225b27713a39364de2524
parent5ac89bb0062e960e0be3d0d7cbf56dca3fd48bab
thunderbolt: Introduce tb_port_path_direction_downstream()

[ Upstream commit 2bfeca73e94567c1a117ca45d2e8a25d63e5bd2c ]

Introduce tb_port_path_direction_downstream() to check if path from
source adapter to destination adapter is directed towards downstream.
Convert existing users to call this helper instead of open-coding.

No functional changes.

Signed-off-by: Gil Fine <gil.fine@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Qin Wan <qin.wan@hp.com>
Signed-off-by: Alexandru Gagniuc <alexandru.gagniuc@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/tunnel.c