From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Haotian Zhang <vulab@iscas.ac.cn>
Cc: andreas.noever@gmail.com, westeri@kernel.org,
YehezkelShB@gmail.com, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] thunderbolt: Return -ENOTSUPP when cm_ops callbacks are missing
Date: Thu, 4 Dec 2025 11:11:16 +0100 [thread overview]
Message-ID: <20251204101116.GA1613537@black.igk.intel.com> (raw)
In-Reply-To: <20251204093224.1431-1-vulab@iscas.ac.cn>
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.
prev parent reply other threads:[~2025-12-04 10:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-04 9:32 Haotian Zhang
2025-12-04 10:11 ` Mika Westerberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251204101116.GA1613537@black.igk.intel.com \
--to=mika.westerberg@linux.intel.com \
--cc=YehezkelShB@gmail.com \
--cc=andreas.noever@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=vulab@iscas.ac.cn \
--cc=westeri@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®