Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp832086pxb; Wed, 13 Jan 2021 17:45:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJw840+T7GhAXoRSzTBRs6M4e18EUSfMuRrnqBGKzFz7Uw1HJscuwTng9zrDiHpBcsatNCG+ X-Received: by 2002:aa7:c2d8:: with SMTP id m24mr3974573edp.300.1610588747908; Wed, 13 Jan 2021 17:45:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610588747; cv=none; d=google.com; s=arc-20160816; b=H6Zjbe4l0lLdi5mtycWem0eYo+uSEAq1wN+p0Ow/w+D7ckHkIvQP8NOqhnNPpEpjKr 08VzTUVe+NLhDXExUFERf8yeV9jsgZs9FBkQeenOO+Ci17u/dTZ6RKqUhgdh2LiyX9Kc c2sBdfcm/qLntH8DwPqUhRLL7UPjLx7/UNNH1qOn6Zek6vy7O73Q8k7uTaX25FgV+LYu GwB2BeCZb/ofqtxiwmgoKxWy6R8kSqmF/7XV+fBxwB2NLWH4XcpF0/1XAC5FV7GImF79 wwz9qC4z5KLVdBgAehLwGGCKM3GdV7KAg4Yrc2xuT8olknu5/kMrREHTqXoqE8tBMTzN /Ytg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=0v4ffsos0rapW38+1t0CY4y2xO4VTxoL80FfHQGQHck=; b=b0QAT9oxME7tLn7tb++Hj/gMovheds07JDG0sOtLEKRM/buH2PNA5QNJRR13Q7erB3 sA7vbsYbTyQG9HP0XXehJQZ9MUhDnEmdgQtnm/w3Bs7IlsZBbapgoeHEvbjzffYprBA6 2pSU62nggSI/sWOoqiFc5+qTLE2Zg9maxCnMOEYaaiAPmsH+eRxl41dwjTB+PhG6e6uy Sn3Hg0lnwyOjGPahbVpp5YnOmQcjcjZuaMoULY8YxKs8GQIfngacAYrozhmv1sxiT3FU kxcDp9EhdxF71LH7duxBEL0tNv4zYvz8bmd4WS/TyWVJW+YTGZgZQJin9JhmJgBS844B O33w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=X7s9AnVb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e20si1787412ejk.164.2021.01.13.17.45.24; Wed, 13 Jan 2021 17:45:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=X7s9AnVb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727746AbhANBkx (ORCPT + 99 others); Wed, 13 Jan 2021 20:40:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727518AbhANBkh (ORCPT ); Wed, 13 Jan 2021 20:40:37 -0500 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28BD9C0617AB for ; Wed, 13 Jan 2021 17:39:54 -0800 (PST) Received: by mail-pg1-x535.google.com with SMTP id q7so2689816pgm.5 for ; Wed, 13 Jan 2021 17:39:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=0v4ffsos0rapW38+1t0CY4y2xO4VTxoL80FfHQGQHck=; b=X7s9AnVbndF4RvTXQ8vTFmzEB1dtqOySA2TSPxuQDLtzuZoko9RNhzDwklcgUoZvHD HCF4ESox7Pbj/vHh1slDuHF5Vx/qM6zlYKuQq3FK/1mCyL/6LiLu8cafeDTKDGJ57mpH j2AytFr3UsnPvsCPaN+80cPgSMnkuL69RuICU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=0v4ffsos0rapW38+1t0CY4y2xO4VTxoL80FfHQGQHck=; b=eIrKU+OTBbHDB/tE38dI6iWC0Z8VGo+DW0UGx0zomT9Hcj2+QyyqOI6ZTi4hHHE4/J GijglNiLOI0hbVgMxPBTwraQu2Y7X3B4yKH8emAgYc83aQoeqYfNGtL9wrNb9H1bGz6I QwlPRWUh0Da6ldgNcuPFw8yONXL1rNF6zhl7nBBdsqOULOjSQleNbj7TgaxUTs5mLGh5 CziWKNZaLAIhHyyafZYl+GCkW0Ixiuy0+maStKBwuFJ/MgxuZZBxc57VezK6zPhAiF/N 47rm31JJl3bIrcx9OIExD9fQN06bPiiD2igGAwm+LpVhkWbf+UNHWpPxXfAWm1iPizHP CYpw== X-Gm-Message-State: AOAM530OAmTmtB6jFdPv1gkwidXd4LOc83aR2eRqBN6M3lSrHEDXS6ww vhQ+mZ/5TQGJwtw0A6aCzBDZKyma/uQWnA== X-Received: by 2002:a63:5304:: with SMTP id h4mr4853326pgb.199.1610588393450; Wed, 13 Jan 2021 17:39:53 -0800 (PST) Received: from chromium.org ([2620:15c:202:201:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id v11sm4012814pju.40.2021.01.13.17.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 17:39:52 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20210107154200.v4.1.I025fb861cd5fa0ef5286b7dce514728e9df7ae74@changeid> <20210107154200.v4.2.Ibe7d7d53c5b4fe72c60de90111ff763b53f38dbb@changeid> <161041827643.3661239.17919996906733477213@swboyd.mtv.corp.google.com> <161052058590.3661239.5654596152411573148@swboyd.mtv.corp.google.com> <161057967168.3661239.10329365279391431594@swboyd.mtv.corp.google.com> Subject: Re: [PATCH v4 2/2] Input: cros-ec-keyb - Expose function row physical map to userspace From: Stephen Boyd Cc: LKML , Dmitry Torokhov , Douglas Anderson , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Lee Jones , linux-input@vger.kernel.org To: Philip Chen Date: Wed, 13 Jan 2021 17:39:51 -0800 Message-ID: <161058839125.3661239.15252566946929589144@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Philip Chen (2021-01-13 17:29:05) > On Wed, Jan 13, 2021 at 3:14 PM Stephen Boyd wrote: > > > > Quoting Philip Chen (2021-01-13 14:47:18) > > > On Tue, Jan 12, 2021 at 10:49 PM Stephen Boyd w= rote: > > > > > > > > Quoting Philip Chen (2021-01-12 15:55:28) > > > > > On Mon, Jan 11, 2021 at 6:24 PM Stephen Boyd wrote: > > > > > > > > > > > > Is it documented in Documentation/ABI/? > > > > > Not yet. > > > > > Is it proper to add the documentation to `testing/sysfs-driver-in= put-keyboard`? > > > > > > > > Somewhere in testing is fine. I'm not sure if it is a generic propr= ty > > > > for all keyboards though? What's the path in sysfs? > > > I wouldn't say it's generic. > > > It is available in the keyboard device node only when the board has a > > > custom top-row keyboard design. > > > The path in sysfs is something like: > > > /sys/class/input/input0/device/function_row_physmap, where input0 is > > > cros_ec. > > > > I see that atkbd already has this so at least it would be common to some > > sort of keyboard device. I'm not sure where to document it though. I see > > that atkbd has a handful of undocumented sysfs attributes so adding all > > of those may lead to a common path. At the least it sounds OK to have a > > sysfs-driver-input-keyboard file if input folks are OK with it. > Since there are other undocumented sysfs attributes for input/keyboard > anyway, we should probably leave the documentation to another patch? > For now, let's move to patch v5, where I've addressed all of the > comments so far. Please document this one that's being introduced. We should document all the sysfs attributes but we don't always do a good job at it.