From: "Wu. JackBB (GSM)" <JackBB_Wu@compal.com>
To: "netdev-bot+sashiko@kernel.org" <netdev-bot+sashiko@kernel.org>
Cc: "loic.poulain@oss.qualcomm.com" <loic.poulain@oss.qualcomm.com>,
"ryazanov.s.a@gmail.com" <ryazanov.s.a@gmail.com>,
"johannes@sipsolutions.net" <johannes@sipsolutions.net>,
"andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
"davem@davemloft.net" <davem@davemloft.net>,
"edumazet@google.com" <edumazet@google.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"wen-zhi.huang@mediatek.com" <wen-zhi.huang@mediatek.com>,
"shi-wei.yeh@mediatek.com" <shi-wei.yeh@mediatek.com>,
"Minano.tseng@mediatek.com" <Minano.tseng@mediatek.com>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"angelogioacchino.delregno@collabora.com"
<angelogioacchino.delregno@collabora.com>,
"horms@kernel.org" <horms@kernel.org>,
"corbet@lwn.net" <corbet@lwn.net>,
"skhan@linuxfoundation.org" <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: [PATCH v9 2/6] net: wwan: t9xx: Add control plane transaction layer
Date: Wed, 7 Oct 2026 07:42:53 +0000 [thread overview]
Message-ID: <a742cc87225c4faeb288032b19ee7fe0@compal.com> (raw)
In-Reply-To: <179110515297.434549.13978731531634280399@kernel.org>
Thanks for the review.
On Sun, 4 Oct 2026 17:12:00 +0800 netdev-bot+sashiko@kernel.org wrote:
> This isn't a bug, but at this point in the series nothing calls
> mtk_ctrl_init() or mtk_ctrl_exit(). That means:
[...]
> The subject says "Add control plane transaction layer", but this patch
> only adds structures and helpers that nothing can reach yet.
[...]
> Could these helpers and the include move into the patch that adds their
> callers? Otherwise, could the subject say that this patch only adds the
> scaffolding?
Will fix in v10, the second way: the subject becomes "net: wwan: t9xx:
Add control plane transaction layer framework", and the commit message
gains a line naming the patch where the callers arrive.
That lifts into the subject what the message body already says three
times - "Introduce the control plane and transaction layer framework",
"initialization entry points that subsequent patches build upon", "The
actual DMA engine and TX/RX service implementations are added in
subsequent patches". It is not a new claim, only one that was invisible
unless you read past the subject line.
> This isn't a bug, but mtk_ctrl_init() allocates ctrl_blk with
> devm_kzalloc(), and mtk_ctrl_exit() only clears mdev->ctrl_blk. Suppose
> init and exit ran more than once while the device stayed bound. Each
> mtk_ctrl_init() call would add another devres allocation and overwrite
> mdev->ctrl_blk without freeing the old block.
[...]
> Would it help to add a comment saying mtk_ctrl_init() may only run once
> per bind? That would keep a future reset path from calling it again.
Will fix in v10 with the comment you suggest, on mtk_ctrl_init():
/* May only run once per bind. The ctrl_blk allocation is devres
* managed and is released at unbind, not by mtk_ctrl_exit().
*/
> This isn't a bug, but nothing assigns ctrl_blk->trans in this patch.
[...]
> mtk_ctrl_plane.h is a generic header, but it names the pcie-only struct
> mtk_ctrl_trans. It does not include or forward-declare the header that
> defines it.
[...]
> Could the ctrl_hw_priv member be added here directly? That would avoid
> adding a trans member that is removed one patch later.
Will fix in v10, exactly that: struct mtk_ctrl_blk is introduced with
void *ctrl_hw_priv instead of struct mtk_ctrl_trans *trans. The member
is then not renamed one patch later, and the generic header stops naming
a PCIe-only type, which it should not have done.
Thanks,
Jack
next prev parent reply other threads:[~2026-10-07 7:43 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 7:46 [PATCH v9 0/6] net: wwan: t9xx: Add MediaTek T9XX WWAN driver Jack Wu via B4 Relay
2026-09-30 7:46 ` Jack Wu
2026-09-30 7:46 ` [PATCH v9 1/6] net: wwan: t9xx: Add PCIe core Jack Wu via B4 Relay
2026-09-30 7:46 ` Jack Wu
2026-10-04 9:12 ` netdev-bot+sashiko
2026-10-07 7:34 ` Wu. JackBB (GSM)
2026-09-30 7:46 ` [PATCH v9 2/6] net: wwan: t9xx: Add control plane transaction layer Jack Wu via B4 Relay
2026-09-30 7:46 ` Jack Wu
2026-10-04 9:12 ` netdev-bot+sashiko
2026-10-07 7:42 ` Wu. JackBB (GSM) [this message]
2026-09-30 7:46 ` [PATCH v9 3/6] net: wwan: t9xx: Add control DMA interface Jack Wu via B4 Relay
2026-09-30 7:46 ` Jack Wu
2026-10-04 9:12 ` netdev-bot+sashiko
2026-10-07 7:54 ` Wu. JackBB (GSM)
2026-09-30 7:46 ` [PATCH v9 4/6] net: wwan: t9xx: Add control port Jack Wu via B4 Relay
2026-09-30 7:46 ` Jack Wu
2026-10-04 9:12 ` netdev-bot+sashiko
2026-10-07 7:58 ` Wu. JackBB (GSM)
2026-09-30 7:46 ` [PATCH v9 5/6] net: wwan: t9xx: Add FSM thread Jack Wu via B4 Relay
2026-09-30 7:46 ` Jack Wu
2026-10-04 9:12 ` netdev-bot+sashiko
2026-10-07 8:07 ` Wu. JackBB (GSM)
2026-09-30 7:46 ` [PATCH v9 6/6] net: wwan: t9xx: Add AT & MBIM WWAN ports Jack Wu via B4 Relay
2026-09-30 7:46 ` Jack Wu
2026-10-04 9:12 ` netdev-bot+sashiko
2026-10-07 8:08 ` Wu. JackBB (GSM)
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=a742cc87225c4faeb288032b19ee7fe0@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=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-bot+sashiko@kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.