From: "Chunfeng Yun (云春峰)" <Chunfeng.Yun@mediatek.com>
To: "konrad.dybcio@oss.qualcomm.com" <konrad.dybcio@oss.qualcomm.com>,
"westeri@kernel.org" <westeri@kernel.org>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"YehezkelShB@gmail.com" <YehezkelShB@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"sven@kernel.org" <sven@kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"andreas.noever@gmail.com" <andreas.noever@gmail.com>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>
Subject: Re: [PATCH v2 4/7] thunderbolt: add platform NHI driver
Date: Wed, 11 Nov 2026 13:29:24 +0000 [thread overview]
Message-ID: <b53bf99311bd999b9687666741e100051659ec33.camel@mediatek.com> (raw)
In-Reply-To: <830a0984-8938-40f6-9400-5962dfbbf274@oss.qualcomm.com>
On 二, 2026-11-10 at 13:43 +0100, Konrad Dybcio wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>
>
> On 11/10/26 12:48 PM, Chunfeng Yun wrote:
> > Historically, the Thunderbolt/USB4 Native Host Interface (NHI)
> > controller has been exposed as a PCI device handled by
> > drivers/thunderbolt/pci.c. However, some SoCs (such as MediaTek
> > mt8901/mt8992) integrate the NHI as a memory-mapped platform device
> > described via Device Tree or ACPI.
> >
> > To support platform-attached NHI controllers:
> >
> > Introduce platform.c to register a platform driver matching
> > "usb4-nhi-platform" (OF) and "ACPI0015" (ACPI);
> > Implement platform tb_nhi_ops hooks for pm, interrupts related;
> >
> > Support an optional dedicated wake interrupt: on integrated SoCs,
> > the MAC/PHY reside in a power domain whose clocks and power can be
> > gated during sleep, preventing the primary NHI interrupt from
> > acting as a wakeup source; so add an optional dedicated wakeup
> > interrupt which comes from the always-on power domain.
> >
> > Clean up the unused nhi_enable_int_throttling() prototype.
> >
> > Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> > ---
> > v2 changes:
> > * Added CONFIG_USB4_PLATFORM to build the platform driver as a
> > separate
> > module (thunderbolt_platform.ko), instead of statically embedding
> > it
> > into thunderbolt.o.
> > * Renamed plat.c to platform.c, renamed internal functions from
> > nhi_plat_*
> > to nhi_platform_*, and updated the Device Tree compatible string
> > from
> > "thunderbolt-platform" to "usb4-nhi-platform".
>
> There are still no dt-bindings for this meaning it can't be merged.
> You also haven't answered Sven and mine's concerns about this being
> actually used.
Sorry, I missed your comments on v1 before sending out v2, already
answered your comments.
Thanks
>
> Konrad
next prev parent reply other threads:[~2026-11-11 13:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 11:48 [PATCH 0/7] thunderbolt: Add support " 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 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 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 11:48 ` [PATCH v2 4/7] thunderbolt: add platform NHI driver Chunfeng Yun
2026-11-10 12:43 ` Konrad Dybcio
2026-11-11 13:29 ` Chunfeng Yun (云春峰) [this message]
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 14:39 ` Mika Westerberg
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 14:40 ` Mika Westerberg
2026-11-10 11:48 ` [PATCH v2 7/7] thunderbolt: prevent pcie tunnel activation/teardown warnings Chunfeng Yun
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=b53bf99311bd999b9687666741e100051659ec33.camel@mediatek.com \
--to=chunfeng.yun@mediatek.com \
--cc=YehezkelShB@gmail.com \
--cc=andreas.noever@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=gregkh@linuxfoundation.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=sven@kernel.org \
--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®