From: "Yanchao Yang (杨彦超)" <Yanchao.Yang@mediatek.com>
To: "ryazanov.s.a@gmail.com" <ryazanov.s.a@gmail.com>
Cc: "Chris Feng (冯保林)" <Chris.Feng@mediatek.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"Mingliang Xu (徐明亮)" <mingliang.xu@mediatek.com>,
"Min Dong (董敏)" <min.dong@mediatek.com>,
"m.chetan.kumar@intel.com" <m.chetan.kumar@intel.com>,
"linuxwwan@mediatek.com" <linuxwwan@mediatek.com>,
"Liang Lu (吕亮)" <liang.lu@mediatek.com>,
"Haijun Liu (刘海军)" <haijun.liu@mediatek.com>,
"Haozhe Chang (常浩哲)" <Haozhe.Chang@mediatek.com>,
"Hua Yang (杨华)" <Hua.Yang@mediatek.com>,
"linuxwwan@intel.com" <linuxwwan@intel.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"loic.poulain@linaro.org" <loic.poulain@linaro.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"johannes@sipsolutions.net" <johannes@sipsolutions.net>,
"Ting Wang (王挺)" <ting.wang@mediatek.com>,
"edumazet@google.com" <edumazet@google.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"Aiden Wang (王咏麒)" <Aiden.Wang@mediatek.com>,
"Felix Chen (陈非)" <Felix.Chen@mediatek.com>,
"Lambert Wang (王伟)" <Lambert.Wang@mediatek.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"Mingchuang Qiao (乔明闯)" <Mingchuang.Qiao@mediatek.com>,
"Guohao Zhang (张国豪)" <Guohao.Zhang@mediatek.com>,
"Xiayu Zhang (张夏宇)" <Xiayu.Zhang@mediatek.com>
Subject: Re: [PATCH net-next v1 01/13] net: wwan: tmi: Add PCIe core
Date: Wed, 7 Dec 2022 02:33:54 +0000 [thread overview]
Message-ID: <8878ed64fadfda9b3d3c8cd8b4564dd9019349b6.camel@mediatek.com> (raw)
In-Reply-To: <64aada78-8029-1b05-b802-a005549503c9@gmail.com>
Hello Sergey,
On Sun, 2022-12-04 at 22:52 +0400, Sergey Ryazanov wrote:
> Hello Yanchao,
>
> On 22.11.2022 15:11, Yanchao Yang wrote:
> > From: MediaTek Corporation <linuxwwan@mediatek.com>
> >
> > Registers the TMI device driver with the kernel. Set up all the
> > fundamental
> > configurations for the device: PCIe layer, Modem Host Cross Core
> > Interface
> > (MHCCIF), Reset Generation Unit (RGU), modem common control
> > operations and
> > build infrastructure.
> >
> > * PCIe layer code implements driver probe and removal, MSI-X
> > interrupt
> > initialization and de-initialization, and the way of resetting the
> > device.
> > * MHCCIF provides interrupt channels to communicate events such as
> > handshake,
> > PM and port enumeration.
> > * RGU provides interrupt channels to generate notifications from
> > the device
> > so that the TMI driver could get the device reset.
> > * Modem common control operations provide the basic read/write
> > functions of
> > the device's hardware registers, mask/unmask/get/clear functions of
> > the
> > device's interrupt registers and inquiry functions of the device's
> > status.
> >
> > Signed-off-by: Ting Wang <ting.wang@mediatek.com>
> > Signed-off-by: MediaTek Corporation <linuxwwan@mediatek.com>
> > ---
> > drivers/net/wwan/Kconfig | 11 +
> > drivers/net/wwan/Makefile | 1 +
> > drivers/net/wwan/mediatek/Makefile | 12 +
> > drivers/net/wwan/mediatek/mtk_common.h | 30 +
> > drivers/net/wwan/mediatek/mtk_dev.c | 50 +
> > drivers/net/wwan/mediatek/mtk_dev.h | 503 ++++++++++
> > drivers/net/wwan/mediatek/pcie/mtk_pci.c | 1164
> > ++++++++++++++++++++++
> > drivers/net/wwan/mediatek/pcie/mtk_pci.h | 150 +++
> > drivers/net/wwan/mediatek/pcie/mtk_reg.h | 69 ++
> > 9 files changed, 1990 insertions(+)
> > create mode 100644 drivers/net/wwan/mediatek/Makefile
> > create mode 100644 drivers/net/wwan/mediatek/mtk_common.h
> > create mode 100644 drivers/net/wwan/mediatek/mtk_dev.c
> > create mode 100644 drivers/net/wwan/mediatek/mtk_dev.h
> > create mode 100644 drivers/net/wwan/mediatek/pcie/mtk_pci.c
> > create mode 100644 drivers/net/wwan/mediatek/pcie/mtk_pci.h
> > create mode 100644 drivers/net/wwan/mediatek/pcie/mtk_reg.h
> >
> > diff --git a/drivers/net/wwan/Kconfig b/drivers/net/wwan/Kconfig
> > index 3486ffe94ac4..a93a0c511d50 100644
> > --- a/drivers/net/wwan/Kconfig
> > +++ b/drivers/net/wwan/Kconfig
> > @@ -119,6 +119,17 @@ config MTK_T7XX
> >
> > If unsure, say N.
> >
> > +config MTK_TMI
> > + tristate "TMI Driver for Mediatek T-series Device"
> > + depends on PCI
> > + help
> > + This driver enables Mediatek T-series WWAN Device
> > communication.
> > +
> > + If you have one of those Mediatek T-series WWAN Modules and
> > wish to
> > + use it in Linux say Y/M here.
>
> From this and the series descriptions, it is unclear which modem
> chips
> this driver is intended for and how does it correlate with the T7xx
> driver? Is the TMI driver a drop-in replacement for the t7xx driver,
> or
> does the TMI driver support any T-series chips except t7xx?
The driver is intended for t8xx or later T-series modem chips in the
future. Currently, t7xx is not support.
>
> > +
> > + If unsure, say N.
> > +
> > endif # WWAN
> >
> > endmenu
> > diff --git a/drivers/net/wwan/Makefile b/drivers/net/wwan/Makefile
> > index 3960c0ae2445..198d8074851f 100644
> > --- a/drivers/net/wwan/Makefile
> > +++ b/drivers/net/wwan/Makefile
> > @@ -14,3 +14,4 @@ obj-$(CONFIG_QCOM_BAM_DMUX) += qcom_bam_dmux.o
> > obj-$(CONFIG_RPMSG_WWAN_CTRL) += rpmsg_wwan_ctrl.o
> > obj-$(CONFIG_IOSM) += iosm/
> > obj-$(CONFIG_MTK_T7XX) += t7xx/
> > +obj-$(CONFIG_MTK_TMI) += mediatek/
>
> The driver is called mtk_tmi, but its code is placed to the
> directory
> with too generic name 'mediatek'. Do you plan too keep all possible
> future drivers in this directory?
Yes, we plan to put all mediatek's wwan driver into the same directory.
Currently, there is only T-series modem driver. So we don't create
'tmi' folder under 'mediatek' directory explicitly.
>
> --
> Sergey
Many thanks.
Yanchao.yang
next prev parent reply other threads:[~2022-12-07 2:34 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-22 11:11 [PATCH net-next v1 00/13] net: wwan: tmi: PCIe driver for MediaTek M.2 modem Yanchao Yang
2022-11-22 11:11 ` [PATCH net-next v1 01/13] net: wwan: tmi: Add PCIe core Yanchao Yang
2022-11-24 11:06 ` AngeloGioacchino Del Regno
2022-12-05 12:40 ` Yanchao Yang (杨彦超)
2022-12-05 12:47 ` AngeloGioacchino Del Regno
2022-12-26 1:43 ` Yanchao Yang (杨彦超)
2022-12-04 18:52 ` Sergey Ryazanov
2022-12-07 2:33 ` Yanchao Yang (杨彦超) [this message]
2022-12-16 20:40 ` Sergey Ryazanov
2023-01-11 13:33 ` Yanchao Yang (杨彦超)
2022-11-22 11:11 ` [PATCH net-next v1 02/13] net: wwan: tmi: Add buffer management Yanchao Yang
2022-12-04 18:58 ` Sergey Ryazanov
2022-12-09 10:26 ` Yanchao Yang (杨彦超)
2022-12-16 20:17 ` Sergey Ryazanov
2023-01-11 13:37 ` Yanchao Yang (杨彦超)
2022-11-22 11:11 ` [PATCH net-next v1 03/13] net: wwan: tmi: Add control plane transaction layer Yanchao Yang
2022-11-22 11:11 ` [PATCH net-next v1 04/13] net: wwan: tmi: Add control DMA interface Yanchao Yang
2022-11-22 11:11 ` [PATCH net-next v1 05/13] net: wwan: tmi: Add control port Yanchao Yang
2022-11-22 11:11 ` [PATCH net-next v1 06/13] net: wwan: tmi: Add FSM thread Yanchao Yang
2022-11-22 11:11 ` [PATCH net-next v1 07/13] net: wwan: tmi: Add AT & MBIM WWAN ports Yanchao Yang
2022-11-22 11:11 ` [PATCH net-next v1 08/13] net: wwan: tmi: Introduce data plane hardware interface Yanchao Yang
2022-11-22 11:11 ` [PATCH net-next v1 09/13] net: wwan: tmi: Add data plane transaction layer Yanchao Yang
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=8878ed64fadfda9b3d3c8cd8b4564dd9019349b6.camel@mediatek.com \
--to=yanchao.yang@mediatek.com \
--cc=Aiden.Wang@mediatek.com \
--cc=Chris.Feng@mediatek.com \
--cc=Felix.Chen@mediatek.com \
--cc=Guohao.Zhang@mediatek.com \
--cc=Haozhe.Chang@mediatek.com \
--cc=Hua.Yang@mediatek.com \
--cc=Lambert.Wang@mediatek.com \
--cc=Mingchuang.Qiao@mediatek.com \
--cc=Xiayu.Zhang@mediatek.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=haijun.liu@mediatek.com \
--cc=johannes@sipsolutions.net \
--cc=kuba@kernel.org \
--cc=liang.lu@mediatek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linuxwwan@intel.com \
--cc=linuxwwan@mediatek.com \
--cc=loic.poulain@linaro.org \
--cc=m.chetan.kumar@intel.com \
--cc=min.dong@mediatek.com \
--cc=mingliang.xu@mediatek.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=ryazanov.s.a@gmail.com \
--cc=ting.wang@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;
as well as URLs for NNTP newsgroup(s).