From: "Wu. JackBB (GSM)" <JackBB_Wu@compal.com>
To: Jakub Kicinski <kuba@kernel.org>,
Jack Wu via B4 Relay <devnull+jackbb_wu.compal.com@kernel.org>
Cc: Loic Poulain <loic.poulain@oss.qualcomm.com>,
Sergey Ryazanov <ryazanov.s.a@gmail.com>,
Johannes Berg <johannes@sipsolutions.net>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
Wen-Zhi Huang <wen-zhi.huang@mediatek.com>,
Shi-Wei Yeh <shi-wei.yeh@mediatek.com>,
"Minano Tseng" <Minano.tseng@mediatek.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
"Simon Horman" <horms@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
"Yu. Robert (GSM)" <robert_yu@compal.com>,
"Chang. Jeff (GSM)" <Jeff_Chang@compal.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: RE: [External Mail] Re: [PATCH v6 0/7] net: wwan: t9xx: Add MediaTek T9XX WWAN driver
Date: Tue, 18 Aug 2026 12:20:48 +0000 [thread overview]
Message-ID: <8040d0a7a42c428baa3aec46bba6bec2@compal.com> (raw)
In-Reply-To: <20260817153958.4b120ce9@kernel.org>
On Mon, 17 Aug 2026 at 22:39, Jakub Kicinski <kuba@kernel.org> wrote:
> This FSM exists in the driver, even tho you call it "core logic".
> Please provide more details in the patch description of patch 5
> and consider whether any of this logic should live in the WWAN
> framework.
Good point on the naming — "core logic" is misleading. Will rename it
to "device lifecycle management" in the cover letter to make the scope
clear.
Will also expand P5's commit message to describe the FSM states
(OFF → BOOTUP → READY → ON → OFF), the HS1/HS2/HS3 handshake
protocol, CLDMA init/exit wiring, and the error-recovery paths.
Regarding whether this belongs in the WWAN framework: the FSM manages
the T9xx-specific boot sequence — PCIe link bringup, firmware
handshake via CLDMA-based runtime feature table (RTFT) exchange, and
hardware error recovery (FLDR/PLDR). Every state and transition is
dictated by T9xx hardware behaviour.
The t7xx driver has its own FSM (t7xx_fsm.c /
t7xx_modem_ops.c) in the driver for the same reason — its boot
sequence and handshake protocol are equally device-specific.
The WWAN subsystem today provides port management and netdev helpers,
which t9xx uses (wwan_create_port in P6). A generic device lifecycle
state machine would need to abstract over these vendor-specific boot
protocols, and we don't think that abstraction exists without
hardware-specific knowledge from each vendor.
We believe the FSM belongs in the driver, but we are happy to discuss
if you see specific pieces that could be factored out.
Thanks.
--
Jack
prev parent reply other threads:[~2026-08-18 12:21 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-11 7:14 [PATCH v6 0/7] net: wwan: t9xx: Add MediaTek T9XX WWAN driver Jack Wu via B4 Relay
2026-08-11 7:14 ` [PATCH v6 1/7] net: wwan: t9xx: Add PCIe core Jack Wu via B4 Relay
2026-08-17 22:35 ` Jakub Kicinski
2026-08-11 7:14 ` [PATCH v6 2/7] net: wwan: t9xx: Add control plane transaction layer Jack Wu via B4 Relay
2026-08-17 22:36 ` Jakub Kicinski
2026-08-18 12:22 ` [External Mail] " Wu. JackBB (GSM)
2026-08-11 7:14 ` [PATCH v6 3/7] net: wwan: t9xx: Add control DMA interface Jack Wu via B4 Relay
2026-08-17 22:36 ` Jakub Kicinski
2026-08-18 12:24 ` [External Mail] " Wu. JackBB (GSM)
2026-08-11 7:14 ` [PATCH v6 4/7] net: wwan: t9xx: Add control port Jack Wu via B4 Relay
2026-08-11 7:14 ` [PATCH v6 5/7] net: wwan: t9xx: Add FSM thread Jack Wu via B4 Relay
2026-08-17 22:36 ` Jakub Kicinski
2026-08-11 7:14 ` [PATCH v6 6/7] net: wwan: t9xx: Add AT & MBIM WWAN ports Jack Wu via B4 Relay
2026-08-17 22:36 ` Jakub Kicinski
2026-08-18 12:41 ` [External Mail] " Wu. JackBB (GSM)
2026-08-11 7:14 ` [PATCH v6 7/7] net: wwan: t9xx: Add maintainers entry Jack Wu via B4 Relay
2026-08-17 22:38 ` Jakub Kicinski
2026-08-17 22:39 ` [PATCH v6 0/7] net: wwan: t9xx: Add MediaTek T9XX WWAN driver Jakub Kicinski
2026-08-18 12:20 ` Wu. JackBB (GSM) [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=8040d0a7a42c428baa3aec46bba6bec2@compal.com \
--to=jackbb_wu@compal.com \
--cc=Jeff_Chang@compal.com \
--cc=Minano.tseng@mediatek.com \
--cc=andrew+netdev@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=devnull+jackbb_wu.compal.com@kernel.org \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=johannes@sipsolutions.net \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=loic.poulain@oss.qualcomm.com \
--cc=matthias.bgg@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robert_yu@compal.com \
--cc=ryazanov.s.a@gmail.com \
--cc=shi-wei.yeh@mediatek.com \
--cc=skhan@linuxfoundation.org \
--cc=wen-zhi.huang@mediatek.com \
/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