Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp18560pxb; Wed, 13 Jan 2021 21:51:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVJZknnc4Dc4MtiBpgxGH8T7P6Ll2FIyMnH8+Yn8tMzaMeooqAGBOJuDBDL16fIdNmZz6e X-Received: by 2002:a17:906:6053:: with SMTP id p19mr4122449ejj.93.1610603503609; Wed, 13 Jan 2021 21:51:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610603503; cv=none; d=google.com; s=arc-20160816; b=kcjrndtBUTk746933lfMiz+Jo29JjZJ/IBhN+YHYjkqZwtstebw0rbbca9AKd4fvMU csTEiemKexmD+Tu4u7+nm1iVYWaMo6jvYeXsURmVTByAdgdL+toGEc1GUY09iLujdC5J wMov+RlE54Cee5Kj6kLUmzV3jlBdQ06TiJXIwBjbyh/3XhuEAfi5Ocx8L7U4YQmo1oGJ TG941vBR4Bftp9VNyIQDIRn/HqOq/MPz9zNqqnVt7R0/r97dTtG+u3BBzQDMBADSdhwd XSwp8fVgDlnoQmnYvxmSssq1Km2/NoR8dQ/ILgAHUmyPVd8f3NYeMby8OysWNNO6Z8wn 9sxQ== 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=1pFvcY/01Vb26lhzrF1qqgGg9XJ5TwDsKsXCnLt4nXA=; b=uYXdogJdiczfWnu2LuYMBB/o6LIancPEY7lUep4UvgrX37HDZRa/Eond8oqPLLi5oq c7LZCUXd0sa5PFrgFIjeX09dgRsaztlST8PMmp6+Hzvy9sCxRCTJqOSrT8ZOyDqiT/lG tq3dZIu7c/6gH/VDXZOQ0Ci5c9beoI6LJcMhd5fYkCo/IjrOQmncO7DI4/ygcnSEObaQ eibbmRhzVHEZG1wgM8Mi8igtO0f1uDRjNUMpbDQsuV4XBBxzfGv0OMmudcevOfo0b0Ut uVMu5dhrc2yBoYcmE5yEs+GPqFCFKtP/u0BKePq3bGuywyY4lPMpxe/1CF0MgeP8N+BW VH0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eNCWGP68; 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 qk3si1998310ejb.83.2021.01.13.21.51.19; Wed, 13 Jan 2021 21:51:43 -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=eNCWGP68; 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 S1726208AbhANFtX (ORCPT + 99 others); Thu, 14 Jan 2021 00:49:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbhANFtW (ORCPT ); Thu, 14 Jan 2021 00:49:22 -0500 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D9FCC061794 for ; Wed, 13 Jan 2021 21:48:43 -0800 (PST) Received: by mail-qk1-x736.google.com with SMTP id v126so5837251qkd.11 for ; Wed, 13 Jan 2021 21:48:43 -0800 (PST) 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=1pFvcY/01Vb26lhzrF1qqgGg9XJ5TwDsKsXCnLt4nXA=; b=eNCWGP68cLYu4IBKEBWjnVrW1Y+ZVIDjO4QnwFXrNFBIceA+CrXqj6EZ2hEy+xEAKX M5BKUuHI3oVZ8lZct8p6e1THXxPSjM4i9TILKA+5Fdy1R0FXSyw+cZv+dy35ej84jcm/ IOKqwmLByfQHvZzmEYHkY2xSdpHs7kEJVXnzE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1pFvcY/01Vb26lhzrF1qqgGg9XJ5TwDsKsXCnLt4nXA=; b=Hp7ZSp7QBBDoaLK8G2S2RWK+B36usM0Uxel5L4EDAbOWdWxyFxf4f5GsxwKKyIohmA HL1PgFgREjW6oKF7f4tdx8NJMF0LPFDg6vAhdZazHvFKQOhsXbUunpbnmcGsQIg8ZUEs bFDQu7Bz0Z9a9ppX8hhPfSwucv1937pRLZgn+CIO2qVI5HzRxTAAubmx8Y1ae/RSKkX+ RithacA/9kENbVAtoJpD+b5wwLFPcPIJ9jr5+T3aryGKsFK+Jd9twAqzHcjGE81n5Och sRBEsebKSpDoa0hzNbMIBSPOCnd2sBWr7WA25VsrWzHbrvdJ77lzpHX7lO7ZmgaLZWjy N/Zg== X-Gm-Message-State: AOAM533RK7vlYA6NaEjJqw9YZhEuviQXRTcCGeI3k4zgnpzXuYJVvg9u r1+EJT0oUojl/VbXElUpnJOvysoPILUuoKUa1cPqtQ== X-Received: by 2002:a25:3a04:: with SMTP id h4mr8181759yba.285.1610603322431; Wed, 13 Jan 2021 21:48:42 -0800 (PST) MIME-Version: 1.0 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> <161058839125.3661239.15252566946929589144@swboyd.mtv.corp.google.com> In-Reply-To: <161058839125.3661239.15252566946929589144@swboyd.mtv.corp.google.com> From: Philip Chen Date: Wed, 13 Jan 2021 21:48:31 -0800 Message-ID: Subject: Re: [PATCH v4 2/2] Input: cros-ec-keyb - Expose function row physical map to userspace To: Stephen Boyd Cc: LKML , Dmitry Torokhov , Douglas Anderson , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Lee Jones , linux-input@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 5:39 PM Stephen Boyd wrote: > > 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 wrote: > > > > > > > > > > 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-input-keyboard`? > > > > > > > > > > Somewhere in testing is fine. I'm not sure if it is a generic proprty > > > > > 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. OK, will do!