From: Nick <morrownr@gmail.com>
To: Satadru Pramanik <satadru@gmail.com>
Cc: Sean Wang <sean.wang@kernel.org>,
nbd@nbd.name, lorenzo.bianconi@redhat.com,
linux-wireless@vger.kernel.org,
linux-mediatek@lists.infradead.org,
Sean Wang <sean.wang@mediatek.com>,
stable@vger.kernel.org
Subject: Re: [PATCH 2/2] wifi: mt76: mt792x: fix mt7925u USB WFSYS reset handling
Date: Sun, 15 Mar 2026 18:56:23 -0500 [thread overview]
Message-ID: <CAFktD2cot4QuVSs0_r2p0ajuRSDCL2u8d94Eq5vuVBfZxCsKzw@mail.gmail.com> (raw)
In-Reply-To: <CAFrh3J_4N5j9eZAgbP0gzj5gTGVABat9-4xWZBicKMfgL85LRA@mail.gmail.com>
> >> > From: Sean Wang <sean.wang@mediatek.com>
> >> >
> >> > mt7925u uses different reset/status registers from mt7921u. Reusing the
> >> > mt7921u register set causes the WFSYS reset to fail.
> >> >
> >> > Add a chip-specific descriptor in mt792xu_wfsys_reset() to select the
> >> > correct registers and fix mt7925u failing to initialize after a warm
> >> > reboot.
> >> >
> >> > Fixes: d28e1a48952e ("wifi: mt76: mt792x: introduce mt792x-usb module")
> >> > Cc: stable@vger.kernel.org
> >> > Signed-off-by: Sean Wang <sean.wang@mediatek.com>
> >> > ---
> >> > drivers/net/wireless/mediatek/mt76/mt792x_regs.h | 4 ++++
> >> > drivers/net/wireless/mediatek/mt76/mt792x_usb.c | 13 ++++++++++++-
> >> > 2 files changed, 16 insertions(+), 1 deletion(-)
> >> >
> >> > diff --git a/drivers/net/wireless/mediatek/mt76/mt792x_regs.h b/drivers/net/wireless/mediatek/mt76/mt792x_regs.h
> >> > index 7ddde9286861..d2a8b2b0df32 100644
> >> > --- a/drivers/net/wireless/mediatek/mt76/mt792x_regs.h
> >> > +++ b/drivers/net/wireless/mediatek/mt76/mt792x_regs.h
> >> > @@ -392,6 +392,10 @@
> >> > #define MT_CBTOP_RGU_WF_SUBSYS_RST MT_CBTOP_RGU(0x600)
> >> > #define MT_CBTOP_RGU_WF_SUBSYS_RST_WF_WHOLE_PATH BIT(0)
> >> >
> >> > +#define MT7925_CBTOP_RGU_WF_SUBSYS_RST 0x70028600
> >> > +#define MT7925_WFSYS_INIT_DONE_ADDR 0x184c1604
> >> > +#define MT7925_WFSYS_INIT_DONE 0x00001d1e
> >> > +
> >> > #define MT_HW_BOUND 0x70010020
> >> > #define MT_HW_CHIPID 0x70010200
> >> > #define MT_HW_REV 0x70010204
> >> > diff --git a/drivers/net/wireless/mediatek/mt76/mt792x_usb.c b/drivers/net/wireless/mediatek/mt76/mt792x_usb.c
> >> > index a92e872226cf..47827d1c5ccb 100644
> >> > --- a/drivers/net/wireless/mediatek/mt76/mt792x_usb.c
> >> > +++ b/drivers/net/wireless/mediatek/mt76/mt792x_usb.c
> >> > @@ -224,6 +224,15 @@ static const struct mt792xu_wfsys_desc mt7921_wfsys_desc = {
> >> > .need_status_sel = true,
> >> > };
> >> >
> >> > +static const struct mt792xu_wfsys_desc mt7925_wfsys_desc = {
> >> > + .rst_reg = MT7925_CBTOP_RGU_WF_SUBSYS_RST,
> >> > + .done_reg = MT7925_WFSYS_INIT_DONE_ADDR,
> >> > + .done_mask = U32_MAX,
> >> > + .done_val = MT7925_WFSYS_INIT_DONE,
> >> > + .delay_ms = 20,
> >> > + .need_status_sel = false,
> >> > +};
> >> > +
> >> > int mt792xu_dma_init(struct mt792x_dev *dev, bool resume)
> >> > {
> >> > int err;
> >> > @@ -254,7 +263,9 @@ EXPORT_SYMBOL_GPL(mt792xu_dma_init);
> >> >
> >> > int mt792xu_wfsys_reset(struct mt792x_dev *dev)
> >> > {
> >> > - const struct mt792xu_wfsys_desc *desc = &mt7921_wfsys_desc;
> >> > + const struct mt792xu_wfsys_desc *desc = is_mt7925(&dev->mt76) ?
> >> > + &mt7925_wfsys_desc :
> >> > + &mt7921_wfsys_desc;
> >> > u32 val;
> >> > int i;
> >> >
> >> > --
> >> > 2.43.0
Sean, I have been testing this series of 2 patches for the last two days. I
am no longer seeing problems with warm boot so:
Tested-by: Nick Morrow <morrownr@gmail.com>
Thanks.
prev parent reply other threads:[~2026-03-15 23:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-11 0:28 [PATCH 1/2] wifi: mt76: mt792x: describe USB WFSYS reset with a descriptor Sean Wang
2026-03-11 0:28 ` [PATCH 2/2] wifi: mt76: mt792x: fix mt7925u USB WFSYS reset handling Sean Wang
2026-03-11 16:14 ` Nick
[not found] ` <CAFrh3J-PsVQ1u_hGFxTVKK0uOs6KxT=euK+jbGvWCueqvynAgw@mail.gmail.com>
2026-03-11 18:15 ` Satadru Pramanik
2026-03-15 23:56 ` Nick [this message]
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=CAFktD2cot4QuVSs0_r2p0ajuRSDCL2u8d94Eq5vuVBfZxCsKzw@mail.gmail.com \
--to=morrownr@gmail.com \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo.bianconi@redhat.com \
--cc=nbd@nbd.name \
--cc=satadru@gmail.com \
--cc=sean.wang@kernel.org \
--cc=sean.wang@mediatek.com \
--cc=stable@vger.kernel.org \
/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