Skip to content

HID: asus: drop duplicate GX651AR 0x9c mapping - #26

Open
scardracs wants to merge 1 commit into
OpenGamingCollective:masterfrom
scardracs:cursor/fix-hid-asus-duplicate-0x9c-2563
Open

scardracs wants to merge 1 commit into
OpenGamingCollective:masterfrom
scardracs:cursor/fix-hid-asus-duplicate-0x9c-2563

Conversation

@scardracs

@scardracs scardracs commented Nov 29, 2026 •

Copy link
Copy Markdown

linux-next maps ASUS vendor usage 0x9c to KEY_F19 as the Zenbook Duo screen-swap key. Fork commit 639536b ("HID: asus: map the tent mode key on ROG Zephyrus Duo GX651AR") adds that same case again after the ROG Ally keys, so the replayed tree fails to build:

drivers/hid/hid-asus.c:1400:17: error: duplicate case value
drivers/hid/hid-asus.c:1395:17: note: previously used here

Both arms map 0x9c to KEY_F19. Keep the upstream case and drop the fork one. The other GX651AR changes stay: the USB and Bluetooth device IDs and HID_QUIRK_HIDINPUT_FORCE.

The sync workflow replays every fork commit, including 639536b, and then this one. The tent-mode line is added and removed again on each sync, and the pushed tree keeps a single 0x9c case.

Prepared with an AI coding assistant (Cursor Grok 4.7) from the failing sync log and that fork commit.

Fixes: 639536b ("HID: asus: map the tent mode key on ROG Zephyrus Duo GX651AR")

linux-next maps ASUS vendor usage 0x9c to KEY_F19 as the Zenbook Duo
screen-swap key. Fork commit 639536b ("HID: asus: map the tent
mode key on ROG Zephyrus Duo GX651AR") adds that same case again after
the ROG Ally keys, so the replayed tree fails to build:

  drivers/hid/hid-asus.c:1400:17: error: duplicate case value
  drivers/hid/hid-asus.c:1395:17: note: previously used here

Both arms map 0x9c to KEY_F19. Keep the upstream case and drop the
fork one. The other GX651AR changes stay: the USB and Bluetooth device
IDs and HID_QUIRK_HIDINPUT_FORCE.

The sync workflow replays every fork commit, including 639536b,
and then this one. The tent-mode line is added and removed again on
each sync, and the pushed tree keeps a single 0x9c case.

Prepared with an AI coding assistant (Cursor Grok 4.7) from the failing
sync log and that fork commit.

Fixes: 639536b ("HID: asus: map the tent mode key on ROG Zephyrus Duo GX651AR")
Co-authored-by: Marco Scardovi <scardracs@disroot.org>
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The ASUS HID driver no longer maps vendor usage 0x9c to KEY_F19. The usage now follows the existing default handling for unrecognized ASUS vendor usages.

Changes: ASUS HID mapping

Layer / File(s) Summary
Remove tent-mode key mapping
drivers/hid/hid-asus.c
The mapping from vendor usage 0x9c to KEY_F19 is removed. The usage follows the default handling for unrecognized ASUS vendor usages.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to e29c7

This removes a duplicate key mapping in the ASUS HID driver so the sync workflow's replay of the fork commit builds. Impact is limited to one vendor key usage. No concrete merge-blocking defect was established. The maintainer should confirm that the replayed tree ends up with exactly one 0x9c mapping.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: removing a duplicate GX651AR usage 0x9c mapping in hid-asus. The raw summary confirms the diff removes the fork's tent-mode mapping of 0x9c to KEY_F19 in asus_input_mapping…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: removing a duplicate GX651AR usage 0x9c mapping in hid-asus. The raw summary confirms the diff removes the fork's tent-mode mapping of 0x9c to KEY_F19 in asus_input_mapping, and the objectives say the upstream mapping is kept. The title is specific and matches the changeset.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

The configuration directory could not be loaded. This review used the available YAML and UI settings; directory instructions and checks were not evaluated.

Git: CodeRabbit could not clone the repository, so clone-backed analysis was skipped and this review may be incomplete. Verify repository clone access, such as SSH credentials, before requesting another full review. If clone access is intentionally unavailable, use path_filters to narrow the review scope.

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: cecb8c1f-fc6f-4562-986b-2b372375795f
Commits

Reviewing files that changed from the base of the PR and between 1abbe53 and e29c7df.

Files selected for processing: 1

  • drivers/hid/hid-asus.c
Files with no reviewable changes: 1

  • drivers/hid/hid-asus.c

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants