Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1108109imu; Wed, 23 Jan 2019 10:53:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN5pMHr75hO8QxCtbkTJ0h2HzoxDY9kcKtLSBq1Ba0IVuvPyd75UpLK2AiEQmDjFoYAyT1zH X-Received: by 2002:a17:902:6a8c:: with SMTP id n12mr3432300plk.85.1548269588386; Wed, 23 Jan 2019 10:53:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548269588; cv=none; d=google.com; s=arc-20160816; b=09WFmOffpOykOeryAeCZI3LrqnxrSe2GhpFg6fXVeCktQUDzqy3UahjhwKkP3gsHcy gYQaMj5CLuJkuUb8UGFtk9pHGSolgH8iyqhCPHj7oh5hkMbqYIb6X6TmgXulxF0v7j8d rgC3+Z5jlHjdDNOty1nFBh4mAZ1yg3m/LPX9XhWvAyS86u1r++QOZ+DFHDL1eVVxIi2V aBIDy5LVV23DLpUig93Ba02iv2JW5cQX7qr2pL053Vx0T5TzQ6TQJVwObCkLpGJwplij pbBnfWMJoHnBIwhbH5ug6Ct9GhqULBUIsozEurhB5Fnm3vXTUDkjOatpBP7Fu7Br4SX2 tbjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TNXWEwgmCAyVKAXNNQya/meKe2jV5qxqAUnl8C3LiXk=; b=VaxtrYMuc+FyGV3qxEpxbzA5TOEXWClZ4Wlt0SaUj5N6g/e10m9bNJuptI4kPuBur+ Z4FpxyvVEAZNQJLYq/6ANBCtZZGAHUcb+mrHwNDtVaJg4EREgmu0JPF+MNN8xd+6J/qa UVAuCk+kY9Vi0hoL/vpIChjN8lLHZeIeW2M1OtYOcSVRYg9f3zN7uNP0XRLkTbiPLN6Z 3KzbzFviDfH8ZWOW+1gsR7z+UAzDMGJcjeWrfyBNBHTRdLMeSv3Cyl/z0eSZWNxuiaik R9POHLRT1RxC0Vpt/mmu89Uz4yOB4CWekFdJ1QFK0eK0T3Pe0FrWcN7/JUv8O79Zrmkm TK7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nxRQ+rCr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b89si17413212pfj.207.2019.01.23.10.52.52; Wed, 23 Jan 2019 10:53:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nxRQ+rCr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726444AbfAWSwW (ORCPT + 99 others); Wed, 23 Jan 2019 13:52:22 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:39741 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbfAWSwV (ORCPT ); Wed, 23 Jan 2019 13:52:21 -0500 Received: by mail-pl1-f193.google.com with SMTP id 101so1609227pld.6; Wed, 23 Jan 2019 10:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TNXWEwgmCAyVKAXNNQya/meKe2jV5qxqAUnl8C3LiXk=; b=nxRQ+rCr2+GoOxtyIXqeM3Kke51pIf2NU7eB1+8vfCB5ZShYLmaNPUHZmj5WTQBT+H THIm/oQLEKn9wik55ofihWVlzoD0dtxppu7nFkpk3M/4pQJB4kDxX0xDybnLu27aZt3M BG1Ai7M/ktJCDLoTN8FqOQUOJpL3Fjmq7ss0s1MiB044tLY3vb0eX61HdRM5Br07w2Z3 xfAwSKA75OsedocP4DOSCbY+MlBCE+em01uQhZp29pTxVpO5Kuf/lQ0EAxhdjU5cTVcn dP83BdWT299ADEah5ZfFKmUkvI1vYgEL4wXIy8J9I057QDij3lDTAgXLa/soG6J3mT6X AYzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TNXWEwgmCAyVKAXNNQya/meKe2jV5qxqAUnl8C3LiXk=; b=oRrX1BYxfWS0hgwLRB9JjQARGsLfeq2yDJKL1Eg8O10d469egVQ5TWeEMT3XFbMg7b sQHMvZH44by0Rm3vcIPMl8xsvTf7FjTkmrzTlegNeZDUUlnTYkoq59CCwOC6FrLmjA91 dGrz7phr0B1Y9blHWKHWyXqpsJ1twZ57thuNhDCwK7R4m08PSZ3GBcTKxoPlLKI94z+L e2NsZA6LixsoAW3Qr8J6XOZ7uqsW/oDZCletkg5MM1ZoLuX4x83cxcfqHAPda3XBYGw6 f0wV13WD+Y1QX+Ww0jNROmfG6c4n//RbyCkA7TySD04wzLXya+6eeUYI4fstk81v8Llm oDyw== X-Gm-Message-State: AJcUukezT45prc5nNTPQVFaNz7TRpZfO1OAUCOKXASF3HcOHU7KqT9n8 HnrIYEdNXiNkznjj0IZxhPs= X-Received: by 2002:a17:902:bd4a:: with SMTP id b10mr3422918plx.232.1548269540652; Wed, 23 Jan 2019 10:52:20 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id m11sm30605660pgh.51.2019.01.23.10.52.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jan 2019 10:52:20 -0800 (PST) Date: Wed, 23 Jan 2019 10:52:18 -0800 From: Dmitry Torokhov To: Nick Crews Cc: linux-kernel@vger.kernel.org, sjg@chromium.org, sre@kernel.org, linux-input@vger.kernel.org, groeck@chromium.org, dlaurie@chromium.org, Nick Crews , Duncan Laurie , Enric Balletbo i Serra , Benson Leung Subject: Re: [PATCH v4 7/9] platform/chrome: Add EC properties Message-ID: <20190123185218.GB179701@dtor-ws> References: <20190123183325.92946-1-ncrews@chromium.org> <20190123183325.92946-8-ncrews@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190123183325.92946-8-ncrews@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 23, 2019 at 11:33:23AM -0700, Nick Crews wrote: > From: Nick Crews > > A Property is typically a data item that is stored to NVRAM. > Each of these data items has an index associated with it > known as the Property ID (PID). The Property ID is > used by the system BIOS (and EC) to refer to the Property. > Properties may have variable lengths. Many features are > implemented primarily by EC Firmware with system BIOS > just supporting user configuration via BIOS SETUP and/or > SMBIOS changes. In order to implement many of these types of > features the user configuration information is saved to and > retrieved from the EC. The EC stores this configuration > information to NVRAM and then can use it while the system > BIOS is not running or during early boot. Although this > is a typical scenario there may be other reasons to store > information in the EC NVRAM instead of the System NVRAM. > Most of the property services do not have a valid failure > condition, so this field can be ignored. For items that > are write once, a failure is returned when a second > write is attempted. > > Add a get and set interface for EC properties. > properties live within the "properties" directory. > Most of the added properties are boolean, but this also > provides the interface for non-boolean properties, > which will be used late for scheduling power routines. We have proper interfaces for many of the options below (i.e. mic mute led can be expressed via LED subsystem and controlled via /sys/class/led/...), wlan is should be controlled by rfkil if we decide to go that road, etc. Thanks. -- Dmitry