Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4835618ioa; Wed, 27 Apr 2022 12:10:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuqMzFGJ/PgDPI7UXJet7ysIIXe+Y6w37q7Y/8WW3N0yDorUDegi9ne2GHxcZ2k/Xy/Dx6 X-Received: by 2002:a05:6402:418:b0:423:d3e8:b77 with SMTP id q24-20020a056402041800b00423d3e80b77mr32053421edv.267.1651086622359; Wed, 27 Apr 2022 12:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651086622; cv=none; d=google.com; s=arc-20160816; b=OY4G8PAGtmOdMnAqvcP9spg3vJsLFSCSvKTNo8iuabHzVZa/Nhlo+y5p9YvdZD/YJ7 h1oI41ekSTjdqqSY5Bvwr4yPC6cTO1tw4H36zJzI5V2nDWPNVoPVd4aEF30ivyU92mlK 88eqYYHox4uihlONnbKYjERacScBpVDrYCoz4WTfndOAixPWFRbj958uQfuvKmy7x2Cm bwbbmPYDlBZcXQjoPMXglrcPetCdg4fEZw1zpMeNajXFzaWI479YSFqnudYT3OJhsYVH jSGxNLxK0/crGenuVgvG0hjnRtUJ/VT6zWGIvnBjkyCc8lLlwe3jkf3r34Wlf34LZuAF R51A== 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=ELW/tf+z/1Ae63zOagnlWVkh4PSOlMUTlo/HVvH7uaM=; b=o2wdza8MxzkrQDvNsFObzPDJvYWrdK4CD/sga1PdtTpnDjli5/j4806kuK6nvZ66Xi GpBgT5i5gKy0iTPqjmOuGg5RlvOqRfrLP7rwtBomsPXqbmLSSgFFPH7b6ZK/mKnzQltW oZ/L/bzR7Rm+ETwsrLGxzdSPQNPf515vy/e6Q4wOEdulj9VTq46k722faW/n/cC/IjIS IjR3RHCaPy5h8RvzY4+ibvBSsy7u4DUmouJVorHPHXLgGrONr9SZwKW3A05BmlqwC3iQ EVzf7YOwqPTsW4GZTKEg8ntH0KkfhCx0T8310bXp3KszRTZnt8A64n6YtLfC7bcEMLgz 7X/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Dgy3mKUt; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a1709064ccd00b006e7de072bfbsi1765781ejt.587.2022.04.27.12.09.58; Wed, 27 Apr 2022 12:10:22 -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=@chromium.org header.s=google header.b=Dgy3mKUt; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232362AbiD0TCo (ORCPT + 99 others); Wed, 27 Apr 2022 15:02:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231532AbiD0TCe (ORCPT ); Wed, 27 Apr 2022 15:02:34 -0400 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55EA86393 for ; Wed, 27 Apr 2022 11:49:26 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id e189so2938309oia.8 for ; Wed, 27 Apr 2022 11:49:26 -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=ELW/tf+z/1Ae63zOagnlWVkh4PSOlMUTlo/HVvH7uaM=; b=Dgy3mKUtoNPc4Iqgr22Pa3IK6L6cNQqoX6GR7sg3iFFzKy/yMoF7rVIPvv303q8zc8 uonfRGS2gKFrTwkO3T3j6WLMqJdBXJCDoENXqDdiBbR3KXCxC116joPNCkVNplsy0Pxb 8i45xwI0lF72jZhYwTDYX+avjz0RG9Hhj2VDg= 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=ELW/tf+z/1Ae63zOagnlWVkh4PSOlMUTlo/HVvH7uaM=; b=Uc1GAQpyn/fi/6DnQbRwMzkHDRlv1/jjCYZkna7BkFgX+8Ej0xfPv4XXPo69sxx/IO sY9ZsfqbQAhfwqc2ll6Gw62tZCGcMvp2ZZUbRAZ3PV2M8s2D8XQK23WBGJQDmBr70hrF tujTyxzzBu3f0IscRuKhKlfbfEzpwqaq6DCGa4OpYS/HEEEQdMJrzxk6CcQxg2AIzmiZ Sq7LFyBfruMRBk86835jwbCdCwHfYepFlc/Vz16KBqKfjBiCr70FsBvhKWoC+fd/y814 i7h9loa3Kd+qf9NIF4QFOfuLDPdbEK8V4rElA++psUxJ6ZoQeLNPfkWRY7/aHsYBlgta OkOQ== X-Gm-Message-State: AOAM532iawM76FvvwKQS6jy8jSMoTS+nS1faUg/4lpEWXZUNOdUW9pwE ilrPjAANczngKvimDzc7zF99PmWO+d/4FKpOMwDPZg== X-Received: by 2002:a05:6808:1296:b0:325:8fb:68f3 with SMTP id a22-20020a056808129600b0032508fb68f3mr9887308oiw.193.1651085365678; Wed, 27 Apr 2022 11:49:25 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 27 Apr 2022 11:49:25 -0700 MIME-Version: 1.0 In-Reply-To: References: <20220426225748.324759-1-swboyd@chromium.org> From: Stephen Boyd User-Agent: alot/0.10 Date: Wed, 27 Apr 2022 11:49:25 -0700 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: sc7180-trogdor: Remove cros-ec keyboard from detachables To: Doug Anderson , Dmitry Torokhov Cc: Andy Gross , Bjorn Andersson , LKML , patches@lists.linux.dev, linux-arm-msm , Benson Leung , Guenter Roeck , Hsin-Yi Wang , "Joseph S. Barrera III" , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Quoting Doug Anderson (2022-04-27 08:09:59) > Hi, > > On Tue, Apr 26, 2022 at 5:17 PM Doug Anderson wrote: > > > > Hi, > > > > On Tue, Apr 26, 2022 at 3:57 PM Stephen Boyd wrote: > > > > > > Trogdor devices that have a detachable keyboard still have a > > > non-detachable keyboard input device present because we include the > > > cros-ec-keyboard.dtsi snippet in the top-level sc7180-trogdor.dtsi file > > > that every variant board includes. We do this because the > > > keyboard-controller node also provides some buttons like the power > > > button and volume buttons. Unfortunately, this means we register a > > > keyboard input device that doesn't do anything on boards with a > > > detachable keyboard. Let's delete the rows/columns properties of the > > > device node to indicate that there isn't a matrix keyboard on these > > > boards. > > > > > > Cc: Benson Leung > > > Cc: Guenter Roeck > > > Cc: Douglas Anderson > > > Cc: Hsin-Yi Wang > > > Cc: "Joseph S. Barrera III" > > > Signed-off-by: Stephen Boyd > > > --- > > > arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 5 +++++ > > > arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi | 5 +++++ > > > 2 files changed, 10 insertions(+) > > > > Presumably we need to do this same thing for wormdingler [1] > > > > [1] https://lore.kernel.org/r/20220426151204.1.Id2821de5fde55ebe928e8fc87a71c8d535edb383@changeid > > > > Reviewed-by: Douglas Anderson > > Do we need to delay landing this patch for a release? I haven't tested > myself, but from re-reading through the code it looks as if > cros_ec_keyb_register_matrix() will return an error code if we have > the device tree patch _without_ commit 4352e23a7ff2 ("Input: > cros-ec-keyb - only register keyboard if rows/columns exist"). That > will cause it to skip registering the buttons/switches, right? Yes, if the driver patch isn't applied then we'll skip registering switches when these properties are removed. I suppose a better way to gracefully migrate the logic here would be to add another compatible string. Then we could make the compatible be compatible = "google,cros-ec-keyb-switches", "google,cros-ec-keyb"; on detachables and the driver can skip registering the keyboard if the more specific "google,cros-ec-keyb-switches" compatible is present. The driver will continue to probe and we don't have to remove any properties. The driver patch has been accepted[1] so in theory this patch can be applied and when the two meet up in linux-next things will work but when bisecting down the DTS the switches won't work. Not a huge problem but sort of annoying that the switches are busted. [1] https://lore.kernel.org/all/Ymh1J9zQ+5EyQadE@google.com/