From patchwork Sat Jul 30 06:37:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gurevitch X-Patchwork-Id: 12932887 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D79CBC04A68 for ; Sat, 30 Jul 2022 06:37:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231303AbiG3Gh5 (ORCPT ); Sat, 30 Jul 2022 02:37:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbiG3Gh4 (ORCPT ); Sat, 30 Jul 2022 02:37:56 -0400 Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF4FE49B6A for ; Fri, 29 Jul 2022 23:37:54 -0700 (PDT) Date: Sat, 30 Jul 2022 06:37:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gurevit.ch; s=protonmail; t=1659163072; x=1659422272; bh=4b/3s3O3YVmjgF+YOkAU35pIIIgu6wkFPG0NYHRXye4=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:Feedback-ID:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID; b=QUecaTpIdv7SRYjw+0TR7+ABWTDT8uXZ80Mz8yYRj0hlIhZdlB4o1c9TeOG+TlDcX 4zWFP4c4uaMt124tFAEhV0TkavZDc+kV/Tk0wOOSXEpR7L/hJyagVX2qWxgyHbdr1+ A4YOy+XD3G+M1s3a4CmtlDFNa8vq1PhM99A67QRJDqEcHsLjPgI4JXiivaKCTlri75 IE6A17eDLahrmMF7bLo9dIChYVh5Ua7s0MmASXG9AjWK0njnSDNDgN5QDOHFcvm5Ec jqCKnkPG8qwzc6lCJxdtuGRF2ZprOBjbwJW2Lj+bjpDgR3xbMqRSfxaUl+rKERfu+w lN2Al3UjZButA== To: "dmitry.torokhov@gmail.com" From: gurevitch Cc: "egori@altlinux.org" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" Reply-To: gurevitch Subject: [PATCH] Input: i8042 - enable dumbkbd quirk for HP 15-dy2xxx and 15s-fq2xxx Message-ID: <2iAJTwqZV6lQs26cTb38RNYqxvsink6SRmrZ5h0cBUSuf9NT0tZTsf9fEAbbto2maavHJEOP8GA1evlKa6xjKOsaskDhtJWxjcnrgPigzVo=@gurevit.ch> Feedback-ID: 43922923:user:proton MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org These two sets of HP laptops have a long keyboard initialization delay due to the controller not delivering interrupts correctly as previously determined by Egor and Vojtech. For the 15-dy2044nr models I have at work the issue persists even after manually updating the system firmware to the latest revision from the Microsoft update catalog (15.21.0.0). Egor submitted a patch for 15s-fq2xxx systems previously but it seems to have been missed/forgotten, so I've included both here. Link: https://lore.kernel.org/lkml/20210528154339.GA9116@suse.com/ Link: https://lore.kernel.org/all/20210609073333.8425-1-egori@altlinux.org/ Signed-off-by: gurevitch --- drivers/input/serio/i8042-x86ia64io.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) -- 2.37.1 diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h index 148a7c5fd..a2454d277 100644 --- a/drivers/input/serio/i8042-x86ia64io.h +++ b/drivers/input/serio/i8042-x86ia64io.h @@ -995,6 +995,24 @@ static const struct dmi_system_id __initconst i8042_dmi_kbdreset_table[] = { { } }; +static const struct dmi_system_id __initconst i8042_dmi_dumbkbd_table[] = { + { + /* HP 15-dy2xxx - keyboard */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "HP"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP Laptop 15-dy2xxx"), + }, + }, + { + /* HP 15s-fq2xxx - keyboard */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "HP"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP Laptop 15s-fq2xxx"), + }, + }, + { } +}; + static const struct dmi_system_id i8042_dmi_probe_defer_table[] __initconst = { { /* ASUS ZenBook UX425UA */ @@ -1333,6 +1351,9 @@ static int __init i8042_platform_init(void) if (dmi_check_system(i8042_dmi_kbdreset_table)) i8042_kbdreset = true; + if (dmi_check_system(i8042_dmi_dumbkbd_table)) + i8042_dumbkbd = true; + if (dmi_check_system(i8042_dmi_probe_defer_table)) i8042_probe_defer = true;