summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2026-06-18 07:22:49 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2026-08-05 05:53:57 +0200
commitf5cb175ed728488aacd8a631cb0a815bfb06664e (patch)
tree48055cdaff3c11db5c81e73c1ed22983cbc84233 /include/linux
parent42bc6935339b913d424331a62f9e965bc72ca3df (diff)
thunderbolt: Make interrupt optional for rings
For some use-cases it does make sense to poll the rings directly instead of relying on the interrupt. For this reason add a new flag RING_FLAG_NO_INTERRUPT that can be used to allocate ring in polled mode. Assisted-by: Claude:claude-opus-4-8 Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/thunderbolt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/thunderbolt.h b/include/linux/thunderbolt.h
index 0a9ac4bfea67..a4e3e8248ace 100644
--- a/include/linux/thunderbolt.h
+++ b/include/linux/thunderbolt.h
@@ -598,6 +598,8 @@ struct tb_ring {
#define RING_FLAG_FRAME BIT(1)
/* Enable end-to-end flow control */
#define RING_FLAG_E2E BIT(2)
+/* Do not enable interrupt for the ring */
+#define RING_FLAG_NO_INTERRUPT BIT(3)
struct ring_frame;
typedef void (*ring_cb)(struct tb_ring *, struct ring_frame *, bool canceled);