Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp282628iob; Fri, 13 May 2022 01:20:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/cZNe9AY/eyhIqBa9zMC3l3rEYmsg5xUSQaCf5I6qQS3LdNaF3SDV0teOfOVgPfip8W06 X-Received: by 2002:a17:907:3e07:b0:6f0:270c:1121 with SMTP id hp7-20020a1709073e0700b006f0270c1121mr3205617ejc.137.1652430046142; Fri, 13 May 2022 01:20:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652430046; cv=none; d=google.com; s=arc-20160816; b=TcgsB7+sAaxlqXXyV0lTtrIoJwLEJ20zvUXsGWYD8kRFNYZ8T9pdnLdNXnagoHXcH9 8zV8bSLZ4AcrCsXkk1fictYCoUYpzElbqiZSh5b6aWfE40WRdPv8idUwDLixcrl38Nah nrvCshdKdpn2lwSPCga84UmPmk3HtCaYVAkEPhxW25HSJSkFiOiZxiaMp78/VX/eB89f yJ2RkdQQw2Uv8Cb0qSpebkn13oyxpQs/dGyevqKJ2WNR/8RDHeOF4bs9PnHMRZFLhRBP tfXg6T8SIV9TFO4JUFJUvZJVUFRccPIObzCKB4C5mrkOR9v9uRyqTzjGHkuNZ+oyMH04 p+Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LenX5q8clYj/Ritl2+sXqopbOv/wuxh9dSWVaj6WujY=; b=vPTZSISzUb26XFT0T30ZhCTd6hc4JfrQ7Q3e6PZiP2S5tVZlTZCvL1cdGdFtmszRFQ klDDdJ0QQuxZPZDp8ueEk0DVmPN66eSuTdMpW9CN8iVTrOo1U2YPA3YEuCbVuGckZLqs ldCqHCNgtLWrmHsI7Zk06fZsjOIvSW2BruHg0EH5eDzFY0ZnTPCFINeTQxYTrskiqLXY wA2ALe/TW5mR4WK4zs0X7p/BpZQz2BLat0XJyD/kSHtM3xwtu92K2SCWhMK8ptyBM051 pTsuV1/p4faF5sDmu7SMG+/kYeQOZkHbw6O4cCoZi4piwn1iwsxwDGVl99JIU09U/Bad GV7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K2axMNOw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020a50f68a000000b00427cafa43f9si1420316edn.276.2022.05.13.01.20.18; Fri, 13 May 2022 01:20:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K2axMNOw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359287AbiELWsO (ORCPT + 99 others); Thu, 12 May 2022 18:48:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355938AbiELWsM (ORCPT ); Thu, 12 May 2022 18:48:12 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C52E216076; Thu, 12 May 2022 15:48:11 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id a5so5346909wrp.7; Thu, 12 May 2022 15:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=LenX5q8clYj/Ritl2+sXqopbOv/wuxh9dSWVaj6WujY=; b=K2axMNOwMpgK//LGT46npsuQhEEFQdyVpmgp0EPnc+YVChAmxoWbCCFtJTpiRf1Des ggQ6No7G71U25KfTlioMqTT53c+ru78fkEba7Xaf/jHn8jiT5iZ0RrNcCQ3NNOa2AT87 wJne6mV/vUoDDUEcxuR42s2N+aJ0p37Z5UvHOZ2JwlI6YYNG2xY4ahMUo8KCVMe1BZaM 2jqciX1w8jscLaGEHkyGpIF4P6Bjk6dkOLXTv55VTnxKecEkq5FEoVfhYFAhWeFDhLi4 waUknWOYMRNukEF+XH6dEvkLtUSjbwUJNZTJf1c25UcncA5hgcmgqz2x3aVkc+2/y5O/ 4qzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LenX5q8clYj/Ritl2+sXqopbOv/wuxh9dSWVaj6WujY=; b=P6DYMOyTBeLPV3ZKgpXw0tGZQTExGkgsQUpM3PHzn5GaPZJ3YcvVQZ2e4zW3FiPp5v oCApMmOAz0AMtABNXVofU39M6j2sE76WS8glJ66U9ba6QSx5i1hRMn0S3WSVk3Uj8P84 y2ZqjDZzTSAVRZWFYWawfMvQRw/jZow0npnS6C7f/Bp8v3cFJtukmre97xmrwWm5eNuW z4wBtIlrUWHuaaSbi8vwN0mGkN5ElEllLl48zTsLEnxpUts9Gd5Q+CBCUdlSyxC1h34f f0tRXwf/iN02DicrBW5ZKtOZE4sb8BEQ80XM1BjCrar89gRuw+y+cbpLBOqQqkMqYQdd 2s3g== X-Gm-Message-State: AOAM530bquvjMgxxeAZfQAPIJofkE8I3diihpjbMuxMtm1d6JtqGOjSN GNfUGLDzCkeJJwfq4tqVK+Y= X-Received: by 2002:a5d:648b:0:b0:20c:5aec:1c06 with SMTP id o11-20020a5d648b000000b0020c5aec1c06mr1428353wri.525.1652395689697; Thu, 12 May 2022 15:48:09 -0700 (PDT) Received: from penguin ([80.149.170.9]) by smtp.gmail.com with ESMTPSA id q4-20020adf9dc4000000b0020c6b78eb5asm602278wre.68.2022.05.12.15.48.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 15:48:08 -0700 (PDT) Date: Fri, 13 May 2022 00:47:49 +0200 From: Dmitry Torokhov To: Pablo Ceballos Cc: Jiri Kosina , Benjamin Tissoires , lkml , "linux-input@vger.kernel.org" Subject: Re: [PATCH] HID: Driver for Google Hangouts Meet Speakermic Message-ID: References: <20220405183953.2094007-1-pceballos@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, May 12, 2022 at 03:35:00PM -0700, Pablo Ceballos wrote: > On Thu, May 12, 2022 at 3:53 AM Jiri Kosina wrote: > > On Thu, 12 May 2022, Dmitry Torokhov wrote: > > > I am curious, could not this be achieved without a kernel driver by > > > simply using udev to map this usage code to KEY_RESERVED? > > > > Hmm, good point, using KEY_RESERVED mapping to achieve the key being > > actually ignored didn't immediately occur to me. > > > > Pablo, could you please verify that it behaves in the expected way, and > > confirm that we could drop the 'driver' in favor of udev rule? > > I think I've achieved the same result by adding the following to udev > hwdb. Dmitry, is this what you had in mind, or is there a better way > of doing this? > > evdev:input:b0003v18D1p8001* > KEYBOARD_KEY_b002f=reserved No, that is exactly what I had in mind, thank you. Please submit this entry to upstream systemd/udev project (and we can cherry-pick it into our udev as well). In general I think we should try to avoid trivial "fixup" HID drivers if it is possible. I also wondered if we could be supplying fixed-up HID descriptors via request_firmware() for HID devices. Thanks. -- Dmitry