-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Wireless driver patching: fix inconsistency in matching #8789
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
Conversation
Mathing Allwinner family via LINUXFAMILY is giving different results. sunxi doesn't cover sun5* ...
|
Caution Review failedThe pull request is closed. WalkthroughThis PR broadens platform pattern matches in lib/functions/compilation/patch/drivers_network.sh by changing multiple conditionals from "sunxi*" to "sun*" and updates related comments. It also modifies config/kernel/linux-sunxi64-edge.config by removing CONFIG_MHI_BUS and adding numerous WLAN/USB wireless driver configuration options (many set to =m or =y). No function signatures or external APIs were changed. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Mix of homogeneous script pattern edits (low effort) and a large, heterogeneous kernel config change requiring verification of enabled drivers and build implications. Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
config/kernel/linux-sunxi64-edge.config(4 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-07-27T15:54:35.119Z
Learnt from: pyavitz
PR: armbian/build#8421
File: config/kernel/linux-sunxi64-edge.config:2168-2173
Timestamp: 2025-07-27T15:54:35.119Z
Learning: In the Armbian build system, staging 802.11 drivers like CONFIG_RTLLIB, CONFIG_RTL8192E, CONFIG_R8712U are kept enabled alongside upstream rtw88 drivers because rtw88 is still under development and suffers from reliability issues. The staging drivers serve as necessary fallbacks when upstream drivers are unstable, prioritizing working hardware over avoiding technical conflicts.
Applied to files:
config/kernel/linux-sunxi64-edge.config
🔇 Additional comments (1)
config/kernel/linux-sunxi64-edge.config (1)
599-599: No issues found with CONFIG_MHI_BUS removal.Verification confirms CONFIG_MHI_BUS is modem/WWAN-specific (Qualcomm PCIe modems) and unrelated to the new wireless drivers being added. Removing the host-side controller while retaining CONFIG_MHI_BUS_EP=m (endpoint) is intentional and appropriate for this sunxi64 edge configuration. No dependencies are broken.
cd01a2a to
56acd50
Compare
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
config/kernel/linux-sunxi64-edge.config (1)
839-874: Verify Realtek/MTK/RTW88 staging+upstream coexistence is stable and well-tested.Per learnings, coexistence of staging drivers (e.g.,
CONFIG_RTL8723DS=mat line 926) alongside upstream rtw88 drivers is intentional due to rtw88 developmental issues. However, ensure:
- Module load order is explicitly controlled to avoid conflicts (staging drivers should not auto-load if upstream driver is present).
- All added wireless drivers are tested on the target boards to confirm reliability.
- Any known issues or mutual-exclusivity constraints are documented.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
config/kernel/linux-sunxi64-edge.config(4 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-07-27T15:54:35.119Z
Learnt from: pyavitz
PR: armbian/build#8421
File: config/kernel/linux-sunxi64-edge.config:2168-2173
Timestamp: 2025-07-27T15:54:35.119Z
Learning: In the Armbian build system, staging 802.11 drivers like CONFIG_RTLLIB, CONFIG_RTL8192E, CONFIG_R8712U are kept enabled alongside upstream rtw88 drivers because rtw88 is still under development and suffers from reliability issues. The staging drivers serve as necessary fallbacks when upstream drivers are unstable, prioritizing working hardware over avoiding technical conflicts.
Applied to files:
config/kernel/linux-sunxi64-edge.config
🔇 Additional comments (1)
config/kernel/linux-sunxi64-edge.config (1)
842-849: ****The review comment contains multiple factual errors and is based on a misunderstanding of the platform appropriateness of these drivers.
Key findings:
Platform appropriateness is correct: UWE5622 and Spreadtrum drivers (CONFIG_SPARD_WLAN_SUPPORT, CONFIG_SC23XX, etc.) are legitimately used on Allwinner H616 boards (part of sunxi64 platform), not "non-Allwinner" or "platform-mismatched" as claimed.
Driver classification error: CONFIG_WLAN_UWE5621/5622 are Unisoc drivers, not "Rockchip UWE driver modules." The developer correctly did not include CONFIG_RK_WIFI* (actual Rockchip-specific drivers), which are absent from the sunxi64 config as expected.
Incorrect builtin/module status: The review claims SC2342_INTEG, SC2355, SC2366 are
=y(builtin), but they are actually=m(modules):
- Line 938: CONFIG_SC2342_INTEG=m
- Line 939: CONFIG_SC2355=m
- Line 940: CONFIG_SC2366=m
The drivers in question are appropriate for this configuration and should remain. The review's concerns about platform misalignment do not apply.
Likely an incorrect or invalid review comment.
Description
Mathing Allwinner family via LINUXFAMILY is giving different results. sunxi doesn't cover sun5* ...
0e45d79#r168370107
How Has This Been Tested?
Checklist: