rockchip64: RG Vita Pro drivers - address CodeRabbit review comments from #10321 - #10376
Merged
igorpecovnik merged 4 commits intoAug 9, 2026
Merged
Conversation
added 4 commits
August 9, 2026 13:22
load_globals() parsed ctx->delays.ready but the msleep() using it was commented out, so the panel-description ready delay was ignored. Apply it before marking the panel prepared. Signed-off-by: crackerjacques <jack@supremeoverlordjabs.co>
The driver calls devm_led_classdev_multicolor_register() unconditionally, but the Kconfig (depends on LEDS_CLASS_MULTICOLOR || LEDS_CLASS_MULTICOLOR=n) allowed building it with the multicolor LED class disabled, which fails to link. Depend on LEDS_CLASS_MULTICOLOR. Signed-off-by: crackerjacques <jack@supremeoverlordjabs.co>
devm_power_supply_register() can return -EPROBE_DEFER; returning -EINVAL on IS_ERR() dropped that and broke deferred probe. Return PTR_ERR(sgm->charger). Signed-off-by: crackerjacques <jack@supremeoverlordjabs.co>
… path The firmware-mismatch branch set cw_bat->cw_current = 0, but the unconditional cw_bat->cw_current = cw_current a few lines later overwrote it with the stale unscaled value, so the error path never zeroed the reported current. Zero the local cw_current instead. Signed-off-by: crackerjacques <jack@supremeoverlordjabs.co>
crackerjacques
requested review from
ColorfulRhino,
HeyMeco,
JohnTheCoolingFan,
SuperKali,
TheSnowfield,
ahoneybun,
amazingfate,
brentr,
chainsx,
efectn,
hqnicolas,
iav,
igorpecovnik,
lanefu,
paolosabatino,
prahal,
pyavitz,
rpardini and
schwar3kat
as code owners
August 9, 2026 04:24
Contributor
📝 WalkthroughWalkthroughThe patch set updates Rockchip64 7.1 and 7.2 kernel support. It enables the panel ready delay, integrates the SPI MCU joypad, corrects CW221x fallback current handling, and propagates SGM41542 registration errors. ChangesRockchip64 driver updates
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
EvilOlaf
approved these changes
Aug 9, 2026
Contributor
|
✅ This PR has been reviewed and approved — all set for merge! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #10321: addresses the CodeRabbit findings on the Anbernic RG Vita Pro
driver patches that were left unaddressed at merge. Four independent, low-risk
fixes, each applied to both
rockchip64-7.1androckchip64-7.2:readydelay.load_globals()parsed
ctx->delays.readybut themsleep()using it was commented out, so thepanel-description ready delay was ignored.
depends on LEDS_CLASS_MULTICOLOR. The driver callsdevm_led_classdev_multicolor_register()unconditionally, but the olddepends on LEDS_CLASS_MULTICOLOR || LEDS_CLASS_MULTICOLOR=nallowed building itwith the multicolor LED class disabled, which fails to link.
PTR_ERR(sgm->charger)instead of-EINVALonIS_ERR(), so-EPROBE_DEFERfromdevm_power_supply_register()is preserved.branch set
cw_bat->cw_current = 0but a later unconditionalcw_bat->cw_current = cw_currentoverwrote it with the stale unscaled value, so thereported current was never actually zeroed.
The remaining CodeRabbit comments on these drivers are either intentional
(rmi4
-EPROBE_DEFERfor the TDDI touch IC startup) or hardware limitations(the MCU exposes a single global LED brightness level, not per-ring), so they are
left as-is.
Testing
Built rockchip64
edge(7.1) andbleedingedge(7.2-rc6).Summary by CodeRabbit