Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp194739iob; Mon, 2 May 2022 16:53:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBsA9FgwwiUpq0H+LPkO0HNPZ3ibY49FqwIFN9w2o1wGNWGtDZ8TLT/L+HBJeQdabRoreX X-Received: by 2002:a17:902:d4ce:b0:15e:90f7:5bf7 with SMTP id o14-20020a170902d4ce00b0015e90f75bf7mr11823327plg.98.1651535601522; Mon, 02 May 2022 16:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651535601; cv=none; d=google.com; s=arc-20160816; b=Wzc2oan6z5n3NoYP+2du5iLYV68H4I5wD9osMSAUur+2kMRQjyhkywcSLBvD+Cd5du CE3Qp91lSGKuWIeY65+rKabLihm2P91wEdQs6APEU97jLXniZ/3JR9U7aMvoe9/K8JDB b2SOHEAFrlNu5THhPFBrkHAyJPOM3o8IXPjBBuASlsX28C/47RQ0QX3nXNPv8/OMp25W L10vuDqdlkkmqTEtzwYr7RUloXBPwyegVRVoXFI/UAUbS4jPwkcdscppGukcpWmfVhtB n8dA7CZSVdDG/Z6bL1awHnvJJSWFtXn80F5RRTMI7FQhw6KOZhL9SG49zI5HAsbT+BUu CgkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=5nZPdRykT2oZRCTZ5O2rt6kJua5fF29iVxfAJZw56cY=; b=Crv9JLgz04zG9iFCt9baADoi9onvFOcsEEfRbSUJC+LBH9snOllJtWSBByGp2hDB97 yhkBsDNeBOzwmbvkXhF5wFxQDFvs8kAekPBzTaiApe48amC7TmxUpIWuEX89QnbSYMce DLw64Sq/t0Tus59O8OtvtG8AgqapvuK0go8EI65nS5zbw0jR9toKZUXIJMsQftad1jsc wBFlvrI2J+Fz/3Ooiij2NcEdmefDfExpPAw7FhcZnGYxX/9sR+QxeBaudeqiCdjU6rQI zaA65bAXHK5NhWgHebgYUupbPgU+NCBa48RsxUmuI9bDa0R3EIswP9zfmxMt4Pa7BnlI YL5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IVSPJE8i; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b9-20020a170903228900b00153b2d1659asi10091888plh.418.2022.05.02.16.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:53:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IVSPJE8i; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3C3AB6409; Mon, 2 May 2022 16:53:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243299AbiEBUpG (ORCPT + 99 others); Mon, 2 May 2022 16:45:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234648AbiEBUpE (ORCPT ); Mon, 2 May 2022 16:45:04 -0400 Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B511F11F for ; Mon, 2 May 2022 13:41:34 -0700 (PDT) Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-ed9a75c453so4873474fac.11 for ; Mon, 02 May 2022 13:41:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=5nZPdRykT2oZRCTZ5O2rt6kJua5fF29iVxfAJZw56cY=; b=IVSPJE8ihIwDhFvrO3rD/jlL576xKDMi1eeWJpOWO+uD1Chq3c6LomeI+6Y97J0GXf McHPD0X8Z6YIdPZHS+ll4UY0nTV9J7KkKAXVGj3QZqqZDN5iRnSYigtC0+HincclG/Nl 5iXv+woyo6jyXItZeODYewOTDV6xTvdx6lUvI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=5nZPdRykT2oZRCTZ5O2rt6kJua5fF29iVxfAJZw56cY=; b=I8ywyVIjT0nyu+Otp3tQIxZPe8Oi8FWddzW/9Q9a82eJuYkb/p6gEGpZote4lI/kAr tVuVL05mAPgJEmfVNgqHk+UPVyoElqyqDJzdmVDsTpXBhEDKZH6KtaP7ibF9BndzHDve NlE/mLFG8+M1Y4Uj16OlzkM79qyCofRegFcsPFFjPB73R0kFPfWdsxK/ufTotP3EJo2h FIqI6P4IsffFM0NT7aw6oQE1KZryqQ1DUKX3xnpvstBjmwkER1TbTKY1hYRPBlu2qu18 BNZpt9Wh3jAtR82mDnqtTc9toJmQfck/vi/RqRy+XCL35fwu6tmgpXYVFFHHNQycn9J3 gQPQ== X-Gm-Message-State: AOAM530Pj6vFXrUvn7XuGNxaWa307hX+GHooNKGyNjzJ4XKfXqdsLGI2 Qh0zywnpqksTCHh4BPJ58N8brF+bURTaYjamo7sQA4wQPNM= X-Received: by 2002:a05:6870:558e:b0:e1:db7c:26aa with SMTP id n14-20020a056870558e00b000e1db7c26aamr440556oao.63.1651524094100; Mon, 02 May 2022 13:41:34 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 2 May 2022 13:41:33 -0700 MIME-Version: 1.0 In-Reply-To: References: <20220429233112.2851665-1-swboyd@chromium.org> <20220429233112.2851665-2-swboyd@chromium.org> From: Stephen Boyd User-Agent: alot/0.10 Date: Mon, 2 May 2022 13:41:33 -0700 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: google,cros-ec-keyb: Introduce switches only compatible To: Dmitry Torokhov , Doug Anderson Cc: LKML , patches@lists.linux.dev, chrome-platform@lists.linux.dev, Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, Benson Leung , Guenter Roeck , Hsin-Yi Wang , "Joseph S. Barrera III" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Quoting Dmitry Torokhov (2022-05-02 10:43:06) > On Mon, May 2, 2022 at 10:00 AM Doug Anderson wrote: > > > > That goes against the recently landed commit 4352e23a7ff2 ("Input: > > cros-ec-keyb - only register keyboard if rows/columns exist") but > > perhaps we should just _undo_ that that since it landed pretty > > recently and say that the truly supported way to specify that you only > > have keyboards/switches is with the compatible. > > > > What do you think? > > I am sorry, I am still confused on what exactly we are trying to solve > here? Having a device with the new device tree somehow run an older > kernel and fail? Why exactly do we care about this case? Yes, we're trying to solve the problem where a new device tree is used with an older kernel because it doesn't have the driver patch to only create an input device for the matrix when rows/columns properties are present. Otherwise applying that devicetree patch to an older kernel will break bisection. > We have > implemented the notion that without rows/columns properties we will > not be creating input device for the matrix portion, all older devices > should have it defined, so the newer driver is compatible with them... > Agreed, that solves half the problem. This new compatible eases integration so that devicetrees can say they're compatible with the old binding that _requires_ the rows/column properties. By making the driver change we loosened that requirement, but the binding should have been making the properties required at the start because it fails to bind otherwise. My interpretation of what Doug is saying is that we should maintain that requirement that rows/columns exists if the original compatible google,cros-ec-keyb is present and use the new compatible to indicate that there are switches. Combining the two compatibles means there's switches and a matrix keyboard, having only the switches compatible means only switches, and having only the keyboard compatible means only matrix keyboard. It sounds OK to me.