Netdev List
 help / color / mirror / Atom feed
From: "Wu. JackBB (GSM)" <JackBB_Wu@compal.com>
To: Andrew Lunn <andrew@lunn.ch>
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>,
	Jakub Kicinski <kuba@kernel.org>, 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>,
	"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 v3 3/7] net: wwan: t9xx: Add control DMA interface
Date: Mon, 29 Jun 2026 07:29:39 +0000	[thread overview]
Message-ID: <970c47c350314cd3804cf89c782ac0f6@compal.com> (raw)
In-Reply-To: <dc007021-9013-47b2-b06a-fe4a50d26722@lunn.ch>

Hi Andrew,

> > +static inline void mtk_cldma_clr_bd_dsc(struct cldma_drv_info *drv_info,
> > +					struct bd_dsc *bd_dsc_pool, int nr_bds)
>
> No inline functions in C files. Please let the compiler decide.

Will remove inline from all static functions in .c files.

> > +		bd_dsc->skb = __dev_alloc_skb(req->frag_size, GFP_KERNEL);
> > +		if (!bd_dsc->skb) {
> > +			dev_warn((mdev)->dev, "Failed to alloc SKB\n");
>
> You might want to rate limit this, and the other similar messages in
> the data path, otherwise it could be a DOS.

Will switch to dev_warn_ratelimited() for data path warnings.

> > +	} while (++cnt < 10);
>
> Please use one of the helpers from iopoll.h.

Will replace with read_poll_timeout() in v4.

> > +			devm_kfree(trans->mdev->dev, srv_que);
>
> It is unusual to see devm_kfree(). Why is it needed?

Will remove redundant devm_kfree() calls and let devres handle
cleanup on probe failure.

> > +static unsigned int ctrl_port_chl_mtu;
>
> Is this a global variable? Why is it not part of priv?

> > +module_param(ctrl_port_chl_mtu, uint, 0644);
>
> No modules parameters please. If this is an MTU, why not use the
> normal networking interfaces to set the MTU?

Will remove the module parameter entirely. The control port MTU
is determined by the device during handshake.

Thanks.

Jack Wu

  reply	other threads:[~2026-06-29  7:29 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-24 10:04 [PATCH v3 0/7] net: wwan: t9xx: Add MediaTek T9XX WWAN driver Jack Wu via B4 Relay
2026-06-24 10:04 ` [PATCH v3 1/7] net: wwan: t9xx: Add PCIe core Jack Wu via B4 Relay
2026-06-24 15:56   ` Andrew Lunn
2026-06-29  7:05     ` [External Mail] " Wu. JackBB (GSM)
2026-06-24 10:04 ` [PATCH v3 2/7] net: wwan: t9xx: Add control plane transaction layer Jack Wu via B4 Relay
2026-06-24 16:00   ` Andrew Lunn
2026-06-29  7:26     ` [External Mail] " Wu. JackBB (GSM)
2026-06-24 10:04 ` [PATCH v3 3/7] net: wwan: t9xx: Add control DMA interface Jack Wu via B4 Relay
2026-06-24 16:15   ` Andrew Lunn
2026-06-29  7:29     ` Wu. JackBB (GSM) [this message]
2026-06-24 10:04 ` [PATCH v3 4/7] net: wwan: t9xx: Add control port Jack Wu via B4 Relay
2026-06-24 10:04 ` [PATCH v3 5/7] net: wwan: t9xx: Add FSM thread Jack Wu via B4 Relay
2026-06-24 10:04 ` [PATCH v3 6/7] net: wwan: t9xx: Add AT & MBIM WWAN ports Jack Wu via B4 Relay
2026-06-24 10:04 ` [PATCH v3 7/7] net: wwan: t9xx: Add maintainers entry Jack Wu via B4 Relay
2026-06-25  0:09 ` [PATCH v3 0/7] net: wwan: t9xx: Add MediaTek T9XX WWAN driver Jakub Kicinski
2026-06-25  1:55   ` [External Mail] " Wu. JackBB (GSM)
2026-06-25  2:45     ` Jakub Kicinski

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=970c47c350314cd3804cf89c782ac0f6@compal.com \
    --to=jackbb_wu@compal.com \
    --cc=Minano.tseng@mediatek.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrew@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@vger.kernel.org \
    --cc=pabeni@redhat.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