]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
thunderbolt: dma_test: Use correct value for absent rings when creating paths
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 29 Mar 2023 10:23:04 +0000 (13:23 +0300)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:19:08 +0000 (17:19 +0200)
commit33e34e915204fe6bed31de9dbb11b5378f87ef1a
tree1bf64f35bd37077cb2c1eaf5b48af5bc5eca1d8e
parentc91776140655510c4c86a5600a840ab9f534f921
thunderbolt: dma_test: Use correct value for absent rings when creating paths

BugLink: https://bugs.launchpad.net/bugs/2033931
commit 70c2e03e9aaf17496c63f6e42333c012f5ae5307 upstream.

Both tb_xdomain_enable_paths() and tb_xdomain_disable_paths() expect -1,
not 0, if the corresponding ring is not needed. For this reason change
the driver to use correct value for the rings that are not needed.

Fixes: 180b0689425c ("thunderbolt: Allow multiple DMA tunnels over a single XDomain connection")
Cc: stable@vger.kernel.org
Reported-by: Pengfei Xu <pengfei.xu@intel.com>
Tested-by: Pengfei Xu <pengfei.xu@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/thunderbolt/dma_test.c