Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp248894iob; Mon, 2 May 2022 18:30:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP6ibU6H3uqKbBxdAoPU+Q+KrQNCO5YgCmgQkJvvyfuADri5FKXIa0Z326dp3drIzjQNDU X-Received: by 2002:a17:903:2cf:b0:151:a932:f1f0 with SMTP id s15-20020a17090302cf00b00151a932f1f0mr14719502plk.130.1651541402138; Mon, 02 May 2022 18:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651541402; cv=none; d=google.com; s=arc-20160816; b=njhlCEAcEikEoqhgGVZLrZxXKUOoMGk8Tb0AJpD7pj+5xinIC3pfjmmn5TRaEZAbUs Fc8yiK8XS83GrjkbN24xJ21rUkOcaRVzRcLR5o/OduBwVqGAqtAximOfUqeJus0el5HH Pin0+m/Vf4rKqHf8vVXcQnC/lqAbVA8F1Fj+DNkJYGEU/m7GqT9J2jNRDdfed5lkNr2I 70Ek9MUgUYuShKE+fKCnZdggWPrwq9lYJeCud+1wGjgIT16AaleZGtwpHP6WOe6UMjlu BRKDAsZbWV5B42J0cKKQZaMqW+DyeZ4ZJDJ30TaSIa3/0mmMX8lquxqytAHQS3u9WFDe j3rg== 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:from:in-reply-to :references:mime-version:dkim-signature; bh=Koda+Kmf6rnMD/zj5Q4WlT42MyjML9+QDJTCHNl5ArY=; b=NpdIL4DxNE0NZGvrPHuP8X/6El7nE3+svSv6H8IJ+txfUvJrAmEAzb/bfS7sSDn/ZC CzTIRV38QLaSJPc6iIxR7+PXBNSvgqsJ6HA9Ky5eky5eLakCRGZTTRaDTrqyu1tvT2Xt 9cD1B6bjMnrxBefLKd6ZdUg0XKBYoFiyWyU+VNMYLqA0PnEn6IlUkNaZJYW8nvfY5NHI a3R6SnnKmUJSJrIsrjPya3M/G2d6vRhuhdCZCDXQBGiMU1+hzzx+HlDAeAjYeRIDAZ5n 1/DWLZQexFWxLN86ucEhAvn087gBzlWFSLFFjOAZZoPmLPX4kfTL4YgMy0kOlIMr5DsO qI8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lgXpaCho; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t34-20020a056a0013a200b004ffa29aaa7dsi16086212pfg.261.2022.05.02.18.30.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:30:02 -0700 (PDT) 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=pass header.i=@chromium.org header.s=google header.b=lgXpaCho; 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; 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 1985D33A1D; Mon, 2 May 2022 18:10:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbiECBNk (ORCPT + 99 others); Mon, 2 May 2022 21:13:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbiECBNg (ORCPT ); Mon, 2 May 2022 21:13:36 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6F1B1117 for ; Mon, 2 May 2022 18:10:00 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id i27so30753563ejd.9 for ; Mon, 02 May 2022 18:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Koda+Kmf6rnMD/zj5Q4WlT42MyjML9+QDJTCHNl5ArY=; b=lgXpaChoki38r237kEaHScwsef9q+RhL9t3q/EGcsmq1Nle+XST7WCWWkEQI2W7Gh9 a875yHgmv5a6UmRrnyGQVo4tIqR3NhkEXHqcM2BwsVfgljT+5wsxZkJ4vDidcBmIQASp 82E10En8ezVJwvZkCDTTdq1Pn4Hq0PqwzS+9g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Koda+Kmf6rnMD/zj5Q4WlT42MyjML9+QDJTCHNl5ArY=; b=MStjqw73I5YMxxsn4d4yhC+MQ7hj3EYz7dSxQSr7LEveBfQTvvji6W8Kj2fCszTjlZ j7PF7WmXVTp1fR2gt4eMbrhCmH4iyB8ywjFZ+VYWn0l8+2OdooXfxI0OsEQ0F2VLOpn+ oTRc8HMzveX+N692Lzm1NhayEJkoSWrfxSjhe1Gzi9Uvqni06YrRdl9l0BywmnKHgPi6 HxNZ01cFz8J1FbW8V1DiUVMFeTLli1VEWx4AFrj45AkAjvudZovSAb/6cZPsrhuUKrab N/gL4xiqImViKYVUXj4mbcBeuzVQamaWnuxGBMP462xanaJD7/rUemAAXexVTHcBzyxl uRPg== X-Gm-Message-State: AOAM533CvGsx34WPEyqPKnXmLozHco7/PeDevbA/O4lwNmFKSm0SjWTt uNxlKmSBBqi/W3NrlULFd8QSzXdY3eAoFWIs X-Received: by 2002:a17:907:6e8b:b0:6f4:7147:a6ac with SMTP id sh11-20020a1709076e8b00b006f47147a6acmr3634730ejc.187.1651540198545; Mon, 02 May 2022 18:09:58 -0700 (PDT) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com. [209.85.128.53]) by smtp.gmail.com with ESMTPSA id ec43-20020a0564020d6b00b0042617ba6394sm7268893edb.30.2022.05.02.18.09.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 May 2022 18:09:57 -0700 (PDT) Received: by mail-wm1-f53.google.com with SMTP id ay11-20020a05600c1e0b00b0038eb92fa965so481564wmb.4 for ; Mon, 02 May 2022 18:09:57 -0700 (PDT) X-Received: by 2002:a05:600c:4f08:b0:391:fe3c:40e6 with SMTP id l8-20020a05600c4f0800b00391fe3c40e6mr1254978wmq.34.1651540197013; Mon, 02 May 2022 18:09:57 -0700 (PDT) MIME-Version: 1.0 References: <20220429233112.2851665-1-swboyd@chromium.org> <20220429233112.2851665-2-swboyd@chromium.org> In-Reply-To: From: Doug Anderson Date: Mon, 2 May 2022 18:09:45 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: google,cros-ec-keyb: Introduce switches only compatible To: Stephen Boyd Cc: Dmitry Torokhov , LKML , patches@lists.linux.dev, chrome-platform@lists.linux.dev, Krzysztof Kozlowski , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , 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 Hi, On Mon, May 2, 2022 at 1:41 PM Stephen Boyd wrote: > > 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. I mean, we can also just say that we don't care about breaking bisections and just say that the solution we already landed is fine. It would certainly be less work at this point. > > > 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. That's not quite what I was saying. See my response to patch #2.