From: "Wu. JackBB (GSM)" <JackBB_Wu@compal.com>
To: Loic Poulain <loic.poulain@oss.qualcomm.com>
Cc: 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>,
"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 v10 1/6] net: wwan: t9xx: Add PCIe core
Date: Thu, 15 Oct 2026 09:12:17 +0000 [thread overview]
Message-ID: <1686fe2dfdfd4a0890c037a53818aec1@compal.com> (raw)
In-Reply-To: <CAFEp6-0d86Mx1gardmN74WNFCerY00Pm1B=720tqOqKhz5EE1Q@mail.gmail.com>
Hi Loic,
Thanks for the review.
On Wed, Oct 14, 2026 at 8:49 PM Loic Poulain
<loic.poulain@oss.qualcomm.com> wrote:
> > +#include <linux/dma-mapping.h>
> > +#include <linux/dmapool.h>
> > +#include <linux/kernel.h>
> > +#include <linux/module.h>
> > +#include <linux/sched.h>
> > +#include <linux/slab.h>
> > +#include <linux/spinlock.h>
>
> Looks like a lot of headers for such a small header file. Could you
> trim the unnecessary includes? For example, spinlock.h doesn't appear
> to be used.
Will fix in v11. All seven go: the header only uses BIT() and u32, so
<linux/bits.h> and <linux/types.h> are left, plus a forward declaration
for struct device.
> > +#define SET_HW_BITS(dest, chs, mhccif, dev) \
> > + ({ \
> > + if ((chs) & (dev)) \
> > + (dest) |= FIELD_PREP(mhccif, 1); \
> > + })
>
> A static inline helper would be cleaner.
Will fix in v11:
static inline u32 mtk_pci_map_evt_bit(u32 val, u32 from, u32 to)
{
return (val & from) ? to : 0;
}
Every mask involved is a single bit, so FIELD_PREP(mask, 1) was just
mask. The same helper also replaces the FIELD_PREP(FIELD_GET()) pairs
in mtk_pci_ext_d2h_evt_chs(), which is this translation in the other
direction.
Thanks,
Jack
next prev parent reply other threads:[~2026-10-15 9:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-14 2:50 [PATCH v10 0/6] net: wwan: t9xx: Add MediaTek T9XX WWAN driver Jack Wu via B4 Relay
2026-10-14 2:50 ` Jack Wu
2026-10-14 2:50 ` [PATCH v10 1/6] net: wwan: t9xx: Add PCIe core Jack Wu via B4 Relay
2026-10-14 2:50 ` Jack Wu
2026-10-14 12:49 ` Loic Poulain
2026-10-15 9:12 ` Wu. JackBB (GSM) [this message]
2026-10-14 2:51 ` [PATCH v10 2/6] net: wwan: t9xx: Add control plane transaction layer framework Jack Wu via B4 Relay
2026-10-14 2:51 ` Jack Wu
2026-10-14 2:51 ` [PATCH v10 3/6] net: wwan: t9xx: Add control DMA interface Jack Wu via B4 Relay
2026-10-14 2:51 ` Jack Wu
2026-10-14 2:51 ` [PATCH v10 4/6] net: wwan: t9xx: Add control port Jack Wu via B4 Relay
2026-10-14 2:51 ` Jack Wu
2026-10-14 2:51 ` [PATCH v10 5/6] net: wwan: t9xx: Add FSM thread Jack Wu via B4 Relay
2026-10-14 2:51 ` Jack Wu
2026-10-14 2:51 ` [PATCH v10 6/6] net: wwan: t9xx: Add AT & MBIM WWAN ports Jack Wu via B4 Relay
2026-10-14 2:51 ` Jack Wu
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=1686fe2dfdfd4a0890c037a53818aec1@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@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.