Bug 271737

Summary: Purism coreboot keyboard non-functional due to quirks mode
Product: Base System Reporter: Jon H <jon>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People    
Priority: ---    
Version: 13.2-STABLE   
Hardware: amd64   
OS: Any   

Description Jon H 2023-05-30 21:32:54 UTC
On Purism coreboot systems the quirks mode in atkbdc prevents built in Keyboard from being used. Following patch fixes problem. 


diff --git a/sys/dev/atkbdc/atkbdc.c b/sys/dev/atkbdc/atkbdc.c
index c3c53f98e491..f24c3d883351 100644
--- a/sys/dev/atkbdc/atkbdc.c
+++ b/sys/dev/atkbdc/atkbdc.c
@@ -114,6 +114,7 @@ struct atkbdc_quirks {
 
 static struct atkbdc_quirks quirks[] = {
     {"coreboot", "System76", NULL, 0},
+    {"coreboot", "Purism", NULL, 0},
     {"coreboot", NULL, NULL,
        KBDC_QUIRK_KEEP_ACTIVATED | KBDC_QUIRK_IGNORE_PROBE_RESULT |
        KBDC_QUIRK_RESET_AFTER_PROBE | KBDC_QUIRK_SETLEDS_ON_INIT},
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-06-28 17:20:47 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=599a4548f8f1758afe1d33c53e9a56e42c5f3e30

commit 599a4548f8f1758afe1d33c53e9a56e42c5f3e30
Author:     Jon Hopper <jon@thesoo.org>
AuthorDate: 2023-06-28 17:04:46 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-06-28 17:19:24 +0000

    Adds support for Purism coreboot keyboards

    On Purism coreboot systems the quirks mode in atkbdc prevents built in
    Keyboard from being used. Add quirk to prevent that.

    MFC After:              2 weeks
    PR:                     271737
    Reviewed by:            imp
    Differential Revision:  https://reviews.freebsd.org/D40405

 sys/dev/atkbdc/atkbdc.c | 1 +
 1 file changed, 1 insertion(+)