From: Simon Horman <simon.horman@corigine.com>
To: Daniel Golle <daniel@makrotopia.org>
Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org,
linux-mediatek@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Felix Fietkau <nbd@nbd.name>,
Lorenzo Bianconi <lorenzo@kernel.org>,
Ryder Lee <ryder.lee@mediatek.com>,
Shayne Chen <shayne.chen@mediatek.com>,
Sean Wang <sean.wang@mediatek.com>, Kalle Valo <kvalo@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Alexander Couzens <lynxis@fe80.eu>,
Sujuan Chen <sujuan.chen@mediatek.com>,
Bo Jiao <bo.jiao@mediatek.com>,
Nicolas Cavallari <nicolas.cavallari@green-communications.fr>,
Howard Hsu <howard-yh.hsu@mediatek.com>,
MeiChia Chiu <MeiChia.Chiu@mediatek.com>,
Peter Chiu <chui-hao.chiu@mediatek.com>,
Johannes Berg <johannes.berg@intel.com>,
Wang Yufen <wangyufen@huawei.com>, Lorenz Brun <lorenz@brun.one>
Subject: Re: [PATCH] wifi: mt76: mt7915: add support for MT7981
Date: Sun, 14 May 2023 16:53:43 +0200 [thread overview]
Message-ID: <ZGD192iDcUqoUwo3@corigine.com> (raw)
In-Reply-To: <ZF-SN-sElZB_g_bA@pidgin.makrotopia.org>
On Sat, May 13, 2023 at 03:35:51PM +0200, Daniel Golle wrote:
> From: Alexander Couzens <lynxis@fe80.eu>
>
> Add support for the MediaTek MT7981 SoC which is similar to the MT7986
> but with a newer IP cores and only 2x ARM Cortex-A53 instead of 4x.
> Unlike MT7986 the MT7981 can only connect a single wireless frontend,
> usually MT7976 is used for DBDC.
>
> Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
...
> @@ -489,7 +516,10 @@ static int mt7986_wmac_adie_patch_7976(struct mt7915_dev *dev, u8 adie)
> rg_xo_01 = 0x1d59080f;
> rg_xo_03 = 0x34c00fe0;
> } else {
> - rg_xo_01 = 0x1959f80f;
> + if (is_mt7981(&dev->mt76))
> + rg_xo_01 = 0x1959c80f;
> + else if (is_mt7986(&dev->mt76))
> + rg_xo_01 = 0x1959f80f;
Hi Daniel,
rg_xo_01 will be used uninitialised below if we get here
and neither of the conditions above are true.
Can this occur?
> rg_xo_03 = 0x34d00fe0;
> }
>
...
next prev parent reply other threads:[~2023-05-14 14:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-13 13:35 [PATCH] wifi: mt76: mt7915: add support for MT7981 Daniel Golle
2023-05-14 14:53 ` Simon Horman [this message]
2023-05-14 16:32 ` Daniel Golle
2023-05-15 11:08 ` Kalle Valo
2023-05-15 11:08 ` Kalle Valo
2023-05-15 11:26 ` Simon Horman
2023-05-15 11:26 ` Simon Horman
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=ZGD192iDcUqoUwo3@corigine.com \
--to=simon.horman@corigine.com \
--cc=MeiChia.Chiu@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=bo.jiao@mediatek.com \
--cc=chui-hao.chiu@mediatek.com \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=howard-yh.hsu@mediatek.com \
--cc=johannes.berg@intel.com \
--cc=kuba@kernel.org \
--cc=kvalo@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenz@brun.one \
--cc=lorenzo@kernel.org \
--cc=lynxis@fe80.eu \
--cc=matthias.bgg@gmail.com \
--cc=nbd@nbd.name \
--cc=netdev@vger.kernel.org \
--cc=nicolas.cavallari@green-communications.fr \
--cc=pabeni@redhat.com \
--cc=ryder.lee@mediatek.com \
--cc=sean.wang@mediatek.com \
--cc=shayne.chen@mediatek.com \
--cc=sujuan.chen@mediatek.com \
--cc=wangyufen@huawei.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.