Re: [PATCH] thunderbolt: Return -ENOTSUPP when cm_ops callbacks are missing
From: Mika Westerberg
Date: Thu Dec 04 2025 - 05:11:20 EST
Hi,
On Thu, Dec 04, 2025 at 05:32:24PM +0800, Haotian Zhang wrote:
> Several tb_domain* helpers return -EPERM when the corresponding cm_ops
> callback is NULL. A NULL callback indicates the operation is not
> supported by the connection manager, not a permission denial.
These specifically return -EPERM on purpose because these are used when
PCIe tunnel is established and torn down. If the connection manager
implementation does not provide them it means you don't have permission to
deal with the PCIe tunnels.