From: Ping-Ke Shih <pkshih@realtek.com>
To: "꧁Swapnil Shinde꧂" <shindeswapnil028@gmail.com>
Cc: "kvalo@kernel.org" <kvalo@kernel.org>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] wifi: rtw88: pci: Power off MAC and disable interrupts on shutdown
Date: Fri, 27 Nov 2026 07:11:27 +0000 [thread overview]
Message-ID: <7b6eb43826cb440f9f9386310cb037bb@realtek.com> (raw)
In-Reply-To: <CAJEWX79Jini8C44xiP_O41--eWEhcpZnMiK84Wp8dqmtO-D5Qw@mail.gmail.com>
꧁Swapnil Shinde꧂ <shindeswapnil028@gmail.com> wrote:
> Hi Ping-Ke,
>
> Thank you for the review and suggestion.
>
> I tested calling rtw_enter_ips(rtwdev) under rtwdev->mutex in
> rtw_pci_shutdown() (with EXPORT_SYMBOL(rtw_enter_ips) added in ps.c,
> running alongside the companion btusb shutdown/autosuspend fix) on my
> RTL8723DE laptop:
>
> - Cold boot: Wi-Fi and Bluetooth both work.
> - Warm reboot #1 (Wi-Fi ON, Bluetooth ON): Both Wi-Fi and Bluetooth work.
> - Warm reboot #2 (Bluetooth toggled OFF mid-session, Wi-Fi ON): Both
> Wi-Fi and Bluetooth work cleanly (no -16 MAC power-on timeout or -71
> USB enumeration error).
Good to hear that.
>
> Using rtw_enter_ips() is indeed much cleaner than manually clearing the
> internal flags and calling rtw_power_off(), and it also notifies BT
> coex via COEX_IPS_ENTER before entering PCI_D3hot.
>
> Regarding commits 05202746ed70 and 44492e70adc8:
> - 05202746ed70 sets BIT_USB_SUS_DIS in REG_HCI_OPT_CTRL, which does not
> power off the Wi-Fi MAC before 44492e70adc8 transitions the device to
> PCI_D3hot—leaving REG_APS_FSMCO active across warm reset (-EBUSY).
So both or either one commit don't help?
> - Calling rtw_enter_ips() right before pci_set_power_state(pdev, PCI_D3hot)
> cleanly resolves that while keeping both commits intact.
>
> Would you like me to send a [PATCH v2] that exports rtw_enter_ips() in
> ps.c and calls it from rtw_pci_shutdown() in pci.c?
If this is the only way to fix, please.
---
pw-bot: cr
next prev parent reply other threads:[~2026-11-27 7:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 0:48 [PATCH] wifi: rtw88: pci: Power off MAC and disable interrupts on shutdown Swapnil Shinde
2026-11-27 3:47 ` Ping-Ke Shih
2026-11-27 7:00 ` ꧁Swapnil Shinde꧂
2026-11-27 7:11 ` Ping-Ke Shih [this message]
2026-11-27 8:37 ` [PATCH v2] wifi: rtw88: pci: Enter IPS before PCI_D3hot " Swapnil Shinde
2026-12-01 8:17 ` Ping-Ke Shih
2026-12-01 10:10 ` ꧁Swapnil Shinde꧂
2026-12-02 0:32 ` Ping-Ke Shih
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=7b6eb43826cb440f9f9386310cb037bb@realtek.com \
--to=pkshih@realtek.com \
--cc=kvalo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=shindeswapnil028@gmail.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.