From: sashiko-bot@kernel.org
To: "Chunfeng Yun" <chunfeng.yun@mediatek.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v2 3/7] thunderbolt: Make PCIe NHI support opt-in
Date: Tue, 10 Nov 2026 12:09:53 +0000 [thread overview]
Message-ID: <sashiko-outbox-206987@kernel.org> (raw)
In-Reply-To: <20261110114925.722014-4-chunfeng.yun@mediatek.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] thunderbolt: missing default USB4 on CONFIG_USB4_PCI breaks
existing configs
- [Low] thunderbolt: misplaced EXPORT_SYMBOL_GPL(tb_xdomain_remove) in
xdomain.c
--
commit 20bc8cfb6a438440bc1447d0b676bf03b1cdb691
Author: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
thunderbolt: Make PCIe NHI support opt-in
This commit decouples PCIe NHI and ICM support from the core USB4/Thunderbolt
framework into a separate thunderbolt_pci module controlled by CONFIG_USB4_PCI.
> diff --git a/drivers/thunderbolt/Kconfig b/drivers/thunderbolt/Kconfig
> index 294b3227a5458..605af440457a1 100644
> --- a/drivers/thunderbolt/Kconfig
> +++ b/drivers/thunderbolt/Kconfig
> @@ -1,7 +1,6 @@
> # SPDX-License-Identifier: GPL-2.0-only
> menuconfig USB4
> tristate "Unified support for USB4 and Thunderbolt"
> - depends on PCI
> select APPLE_PROPERTIES if EFI_STUB && X86
> select CRC32
> select CRYPTO_LIB_SHA256
> @@ -18,6 +17,16 @@ menuconfig USB4
>
> if USB4
>
> +config USB4_PCI
> + depends on PCI
> + tristate "Support for PCIe-attached USB4 and Thunderbolt controllers"
> + help
> + Say Y here to add support for the USB4 and Thunderbolt host
> + routers attached over the PCIe bus, commonly found on x86 PCs.
> +
> + To compile this driver a module, choose M here. The module will be
> + called thunderbolt_pci.
[Severity: High]
Should USB4_PCI default to USB4?
Without a default, make olddefconfig on existing configs with CONFIG_USB4
enabled (as well as in-tree defconfigs such as loongson64_defconfig) will set
CONFIG_USB4_PCI=n and drop PCIe controller support. On ACPI systems with a
PCIe host router, having CONFIG_USB4 enabled while CONFIG_USB4_PCI is disabled
still causes acpi_bus_osc_negotiate_platform_control() to claim native OS
USB4 control via _OSC (disabling the firmware Connection Manager) with no OS
NHI driver bound, and causes typec_has_usb4_host_interface() to wait for a
usb4_port component that is never registered.
[ ... ]
> diff --git a/drivers/thunderbolt/xdomain.c b/drivers/thunderbolt/xdomain.c
> index 16e818c1af1c0..d2dd6dec5b474 100644
> --- a/drivers/thunderbolt/xdomain.c
> +++ b/drivers/thunderbolt/xdomain.c
[ ... ]
> @@ -2270,6 +2273,7 @@ void tb_xdomain_unregister(struct tb_xdomain *xd)
> dev_info(&xd->dev, "host disconnected\n");
> device_unregister(&xd->dev);
> }
> +EXPORT_SYMBOL_GPL(tb_xdomain_remove);
[Severity: Low]
EXPORT_SYMBOL_GPL(tb_xdomain_remove) is placed after tb_xdomain_unregister()
instead of immediately after tb_xdomain_remove().
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261110114925.722014-2-chunfeng.yun@mediatek.com?part=3
next prev parent reply other threads:[~2026-11-10 12:09 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 11:48 [PATCH 0/7] thunderbolt: Add support platform NHI driver Chunfeng Yun
2026-11-10 11:48 ` [PATCH v2 1/7] thunderbolt: Prefix NHI core functions with tb_ and tb_ring_ Chunfeng Yun
2026-11-10 11:53 ` sashiko-bot
2026-11-10 12:42 ` Konrad Dybcio
2026-11-11 2:26 ` Chunfeng Yun (云春峰)
2026-11-10 11:48 ` [PATCH v2 2/7] thunderbolt: Move ICM mailbox functions to icm.c and internalize interrupt work Chunfeng Yun
2026-11-10 12:02 ` sashiko-bot
2026-11-10 14:24 ` Mika Westerberg
2026-11-11 2:37 ` Chunfeng Yun (云春峰)
2026-11-10 11:48 ` [PATCH v2 3/7] thunderbolt: Make PCIe NHI support opt-in Chunfeng Yun
2026-11-10 12:09 ` sashiko-bot [this message]
2026-11-11 12:17 ` Chunfeng Yun (云春峰)
2026-11-10 11:48 ` [PATCH v2 4/7] thunderbolt: add platform NHI driver Chunfeng Yun
2026-11-10 12:15 ` sashiko-bot
2026-11-10 12:43 ` Konrad Dybcio
2026-11-11 13:29 ` Chunfeng Yun (云春峰)
2026-11-10 14:37 ` Mika Westerberg
2026-11-10 11:48 ` [PATCH v2 5/7] thunderbolt: increase the lane adapter link-up timeout value Chunfeng Yun
2026-11-10 11:55 ` sashiko-bot
2026-11-12 7:27 ` Chunfeng Yun (云春峰)
2026-11-10 14:39 ` Mika Westerberg
2026-11-12 7:24 ` Chunfeng Yun (云春峰)
2026-11-10 11:48 ` [PATCH v2 6/7] thunderbolt: decouple the waiting time of TB_PORT_UNPLUGGED and TB_PORT_UP Chunfeng Yun
2026-11-10 11:55 ` sashiko-bot
2026-11-10 14:40 ` Mika Westerberg
2026-11-12 8:00 ` Chunfeng Yun (云春峰)
2026-11-10 11:48 ` [PATCH v2 7/7] thunderbolt: prevent pcie tunnel activation/teardown warnings Chunfeng Yun
2026-11-10 12:01 ` sashiko-bot
2026-11-10 14:50 ` Mika Westerberg
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=sashiko-outbox-206987@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=chunfeng.yun@mediatek.com \
--cc=linux-usb@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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