Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3499086pxp; Tue, 8 Mar 2022 16:01:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjhLd209YwJHDep0OO7lmflxl0/2diZExnnoZ2w+FDOXjAUZKPTiuJAPOGpvXkrXu7Vvkb X-Received: by 2002:a17:902:dac1:b0:151:952a:8821 with SMTP id q1-20020a170902dac100b00151952a8821mr19530317plx.11.1646784097021; Tue, 08 Mar 2022 16:01:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646784097; cv=none; d=google.com; s=arc-20160816; b=RDt3dq8R8I1Ktx5y8Rqa2hP2s1RV9H3S1KEIqwdddas9KRt3A0+aO0OHGWCLskUlMW p/LFy9KmFBplv8fR7nTIFvQktg0A188m4VaFbLVjVcW4utqm/Eh0mRcxDMq6nVne+haL GgNMnkYdlYmK4+SRr2J7h0nVOer+cJs3myjSIveF/u+Ly746Id+BZ9CbrjzQLuJu239N EVTpLvWHGB/spJ0qa5JQWQjrj2Mlwy2OfGsF9m4HeTbitLLi5+eNJLaYL7Ccrrq+pFPe GPSVn4fb57uot2iPVKcOz2kberGWcDbqigi0tNAcPkITZ//GASq+/4u+ep+egRM7Z3nH yNPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=OA0ZQjt3Q8Ik0rClfyLh5tXCL350HchRnX2lr5OmMB4=; b=fIc0eRVGbudYvPnyNP18xMYmb/R5hIPyFqD1/0BqD2KqYJqtqbeGUUFoLgqGt6Mgvc 6HA9vkG3Cxzx8V7vtukfNxBv0A+a3cjEP5nirGu3/1g3xY8WaIyLO8aNtDKg/bE/L5sx XT9P0vk9Q71RXvrGhB44/Y0Q4DFzXz2r+DzheoqXaPLdeBdkKkMwOFfvtVkMMtgoOuMj FQhsaJP36zZbzaxCMDFat20czoxHPzuV+Cx3NhuC6JKo6Q98jq9T8OZzTS4turRuCZqW WpaFirEQFJPmF7XHWLIcj4S5JzRAx8XY5hOMLxZGYU8LTryLHwJR/Ly/8q51kpDo5ne7 stTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@tuxedocomputers.com header.s=default header.b=h+xg8xPc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i23-20020aa79097000000b004f741dccdd0si286609pfa.170.2022.03.08.16.01.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:01:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@tuxedocomputers.com header.s=default header.b=h+xg8xPc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8ACBAD95F1; Tue, 8 Mar 2022 15:36:20 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348382AbiCHRGj (ORCPT + 99 others); Tue, 8 Mar 2022 12:06:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346685AbiCHRGf (ORCPT ); Tue, 8 Mar 2022 12:06:35 -0500 Received: from srv6.fidu.org (srv6.fidu.org [159.69.62.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DFE452B18; Tue, 8 Mar 2022 09:05:36 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id C7773C8008A; Tue, 8 Mar 2022 18:05:34 +0100 (CET) Authentication-Results: srv6.fidu.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=tuxedocomputers.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= tuxedocomputers.com; h=content-transfer-encoding:mime-version :x-mailer:message-id:date:date:subject:subject:from:from; s= default; t=1646759134; x=1648573535; bh=OA0ZQjt3Q8Ik0rClfyLh5tXC L350HchRnX2lr5OmMB4=; b=h+xg8xPczvpohUE02gmTVbQjJ/dw3GfSG0hN7nA2 IVZpSaZ05TN0GLqeCCXTByU0j6SvojDnTo/+mZi2xp+uGYdS7Z/1tdzpLYPwY6cs AV3EAPbObC//DUHY3pf5zdjBXuVGk1uYSgL86jQfbRCRIyFqpb21f7b/mneZHOry FBk= X-Virus-Scanned: Debian amavisd-new at srv6.fidu.org Received: from srv6.fidu.org ([127.0.0.1]) by localhost (srv6.fidu.org [127.0.0.1]) (amavisd-new, port 10026) with LMTP id Vx7izqSMtrB0; Tue, 8 Mar 2022 18:05:34 +0100 (CET) Received: from wsembach-tuxedo.fritz.box (host-212-18-30-247.customer.m-online.net [212.18.30.247]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id 43C37C80062; Tue, 8 Mar 2022 18:05:34 +0100 (CET) From: Werner Sembach To: dmitry.torokhov@gmail.com, tiwai@suse.de, mpdesouza@suse.com, arnd@arndb.de, hdegoede@redhat.com, samuel@cavoj.net, wse@tuxedocomputers.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] Input/i8042: Merge quirk tables and add Clevo devices Date: Tue, 8 Mar 2022 18:05:20 +0100 Message-Id: <20220308170523.783284-1-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Following a suggestion by Hans de Goede, I reworked the quirk tables in the i8042 driver. Now all quirks only use a single table. This makes quirks easier to search by device and reduces code line count and memory usage. The 2nd patch adds new debug output to make it easy to see if a specific quirk got applied or not. The third patch adds a list of Clevo devices that need multiple quirks. With the reworked table they don't need to be inserted multiple times now, which was required in v1 and v2 of this patch. I also included the extra quirk for the Clevo NS7xMU, which was a separate patch before.