-
Notifications
You must be signed in to change notification settings - Fork 105
[Deepin-Kernel-SIG] [linux 6.6-y] [Backport] wifi: rtw89: pci: disable PCIE wake bit when PCIE deinit #602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Deepin-Kernel-SIG] [linux 6.6-y] [Backport] wifi: rtw89: pci: disable PCIE wake bit when PCIE deinit #602
Conversation
mainline inclusion from mainline-v6.14-rc1 category: bugfix The PCIE wake bit is to control PCIE wake signal to host. When PCIE is going down, clear this bit to prevent waking up host unexpectedly. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20241111063835.15454-1-pkshih@realtek.com (cherry picked from commit 9c1df81) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Reviewer's Guide by SourceryThis pull request backports a fix from mainline to disable the PCIE wake bit when PCIE is deinitialized. This prevents the host from being unexpectedly woken up. The changes involve introducing a Sequence diagram for PCIE deinitializationsequenceDiagram
participant rtw89_dev
participant rtw89_pci_ops_deinit
participant rtw89_pci_power_wake
rtw89_pci_ops_deinit->>rtw89_pci_power_wake: rtw89_pci_power_wake(rtwdev, false)
rtw89_pci_power_wake-->>rtw89_pci_ops_deinit: return
Sequence diagram for PCIE pre-deinitializationsequenceDiagram
participant rtw89_dev
participant rtw89_pci_ops_mac_pre_deinit_ax
participant rtw89_pci_power_wake_ax
rtw89_pci_ops_mac_pre_deinit_ax->>rtw89_pci_power_wake_ax: rtw89_pci_power_wake_ax(rtwdev, false)
rtw89_pci_power_wake_ax-->>rtw89_pci_ops_mac_pre_deinit_ax: return
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @opsiff - I've reviewed your changes - here's some feedback:
Overall Comments:
- It looks like
rtw89_pci_power_wakeis now a function pointer inrtw89_pci_gen_def, so you should call it through the function pointer instead of directly. - Consider adding a comment explaining why
rtw89_pci_ops_mac_pre_deinit_axis needed.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sourcery-ai[bot] The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
mainline inclusion
from mainline-v6.14-rc1
category: bugfix
The PCIE wake bit is to control PCIE wake signal to host. When PCIE is going down, clear this bit to prevent waking up host unexpectedly.
Link: https://patch.msgid.link/20241111063835.15454-1-pkshih@realtek.com (cherry picked from commit 9c1df81)
Summary by Sourcery
Bug Fixes: