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)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 22 May 2023 05:57:50 +0000 (08:57 +0300)
commit70c2e03e9aaf17496c63f6e42333c012f5ae5307
tree8df0884615a78f58f5abe2a399d70059bda920f4
parent44c026a73be8038f03dbdeef028b642880cf1511
thunderbolt: dma_test: Use correct value for absent rings when creating paths

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>
drivers/thunderbolt/dma_test.c