Skip to content

[Deepin-Kernel-SIG] [linux 6.18.y] [Upstream] Sync Input atkbd fixup from mainline#1852

Open
opsiff wants to merge 2 commits into
deepin-community:linux-6.18.yfrom
opsiff:linux-6.18.y-2026-06-12-honor
Open

[Deepin-Kernel-SIG] [linux 6.18.y] [Upstream] Sync Input atkbd fixup from mainline#1852
opsiff wants to merge 2 commits into
deepin-community:linux-6.18.yfrom
opsiff:linux-6.18.y-2026-06-12-honor

Conversation

@opsiff

@opsiff opsiff commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary by Sourcery

Extend atkbd DMI quirk handling to deactivate the keyboard controller on additional laptop models.

Bug Fixes:

  • Apply atkbd_deactivate_fixup for Lenovo Yoga Air 14 (83QK) systems to address keyboard issues.
  • Apply atkbd_deactivate_fixup for HONOR BCC-N systems to address keyboard issues.

wangzy85222 and others added 2 commits June 12, 2026 11:04
mainline inclusion
from mainline-v7.1-rc7
category: bugfix

The Lenovo Yoga Air 14 (83QK) laptop keyboard becomes unresponsive
after the standard atkbd init sequence. Controlled testing on the
actual hardware shows the F5 (ATKBD_CMD_RESET_DIS / deactivate)
command specifically corrupts the EC state, causing zero IRQ1
interrupts after init.

Skipping only the deactivate command (while keeping F4 ENABLE)
resolves the issue completely: both keystroke input and CapsLock
LED toggle work correctly. The reverse test - skipping only F4
while keeping F5 - makes the problem worse (zero keystroke
interrupts), confirming F5 is the sole culprit.

Add a DMI quirk entry for LENOVO/83QK using the existing
atkbd_deactivate_fixup callback, consistent with the existing
entries for LG Electronics and HONOR FMB-P that address the
same EC F5 deactivate issue.

Signed-off-by: Zeyu WANG <zeyu.thomas.wang@gmail.com>
Link: https://patch.msgid.link/20260602170909.14725-1-zeyu.thomas.wang@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
(cherry picked from commit ad0979fe053e9f2db82da82188256ef6eb41095a)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
mainline inclusion
from mainline-v7.1-rc7
category: bugfix

After commit 9cf6e24 ("Input: atkbd -
do not skip atkbd_deactivate() when skipping ATKBD_CMD_GETID"), HONOR
BCC-N, aka HONOR MagicBook 14 2026's internal keyboard stops
working. Adding the atkbd_deactivate_fixup quirk fixes it.

DMI: HONOR BCC-N/BCC-N-PCB, BIOS 1.04 04/07/2026

Fixes: 9cf6e24 ("Input: atkbd - do not skip atkbd_deactivate() when skipping ATKBD_CMD_GETID")
Reported-by: Hongfei Ren <lcrhf@outlook.com>
Link: colorcube/Linux-on-Honor-Magicbook-14-Pro#1 (comment)
Tested-by: Hongfei Ren <lcrhf@outlook.com>
Cc: stable@kernel.org
Signed-off-by: Cryolitia PukNgae <cryolitia.pukngae@linux.dev>
Link: https://patch.msgid.link/20260605-honor-v1-1-78e05e491193@linux.dev
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
(cherry picked from commit fb402386af4cdce108ff991a796386de55439735)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
@sourcery-ai

sourcery-ai Bot commented Jun 12, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds new DMI-based atkbd deactivation quirks for specific Lenovo and HONOR laptops so the PS/2 keyboard controller is properly handled on these models.

Sequence diagram for DMI-based atkbd_deactivate_fixup on specific laptops

sequenceDiagram
    participant Firmware as DMI
    participant Kernel as InputCore
    participant ATKBD as atkbd_driver
    participant PS2 as PS2_Controller

    Firmware->>Kernel: provide_DMI_system_info()
    Kernel->>ATKBD: atkbd_dmi_quirk_table_lookup()
    alt Lenovo_Yoga_Air_14_83QK_or_HONOR_BCC_N
        ATKBD->>ATKBD: atkbd_deactivate_fixup()
        ATKBD->>PS2: disable_ps2_keyboard_controller()
    else Other_models
        ATKBD-->>PS2: no_fixup_applied
    end
Loading

File-Level Changes

Change Details Files
Extend atkbd DMI quirk table to cover additional laptop models requiring keyboard controller deactivation fixup.
  • Add DMI quirk entry for Lenovo Yoga Air 14 (product 83QK) that triggers atkbd_deactivate_fixup via DMI_SYS_VENDOR and DMI_PRODUCT_NAME matches.
  • Add DMI quirk entry for HONOR laptop (product BCC-N) that triggers atkbd_deactivate_fixup via DMI_SYS_VENDOR and DMI_PRODUCT_NAME matches.
drivers/input/keyboard/atkbd.c

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@Avenger-285714

Copy link
Copy Markdown
Member

/approve

linux-6.6.y needs this too

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR syncs an upstream fix to the atkbd driver’s DMI-based quirk table to disable the i8042 keyboard controller on additional affected laptop models, addressing keyboard/controller issues on those systems.

Changes:

  • Add a DMI quirk entry to apply atkbd_deactivate_fixup on Lenovo Yoga Air 14 (product name 83QK).
  • Add a DMI quirk entry to apply atkbd_deactivate_fixup on HONOR systems with product name BCC-N.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

5 participants