summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorSven Peter <sven@kernel.org>2026-08-29 10:08:33 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2026-09-01 10:08:41 +0200
commit032c59c7681c661b63123231824170c025afb7e7 (patch)
treec6a44ce6669a245bd886f2097f6b05b2e3e1ab13 /tools/lib/python/kdoc/python_version.py
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
downloadlinux-next-032c59c7681c661b63123231824170c025afb7e7.tar.gz
linux-next-032c59c7681c661b63123231824170c025afb7e7.zip
thunderbolt: Hold a router reference for each allocated HopID
tb_stop() drops the reference to all DP tunnels but does not deactivate them, thus nothing cancels a dprx_work still in flight (which holds its own tunnel reference) and the tunnel can outlive tb_switch_remove(). The HopID releases in tb_path_free() then operate on freed IDAs and trigger warnings like ida_free called for id=8 which is not allocated. This can be triggered by unbinding the driver while a DP tunnel is still waiting for the DPRX capabilities read to finish. On the Apple NHI unplugging the cable runs into just that reliably because the read can never finish right now and because the unplug powers down the entire USB4 complex and removes the NHI device. Take a router reference whenever an input or output HopID is allocated and drop it again after the HopID is released. This keeps the ports and their HopID IDAs alive for as long as they are used. The KUnit tests allocate routers without ever registering their devices so initialize the embedded struct device there as well and drop its initial reference when the test is finished. Fixes: d6d458d42e1e ("thunderbolt: Handle DisplayPort tunnel activation asynchronously") Cc: stable@vger.kernel.org Signed-off-by: Sven Peter <sven@kernel.org> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions