Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp115055imm; Tue, 10 Jul 2018 22:33:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfyRzmzusl+I7bV1NsCgBrEN7y6ierECKzSzi2D2zcBE8kKwEHpCNQKqtpPmLfkyBhuiCSB X-Received: by 2002:a17:902:c6b:: with SMTP id 98-v6mr27371822pls.37.1531287198366; Tue, 10 Jul 2018 22:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531287198; cv=none; d=google.com; s=arc-20160816; b=XdVYXZJ2OikbdHIBVJ9l8w53Oaw3JzqK0yLTjP5UtkuKCDXz/BDXyYZPZCzN+Il9ei df5VB6FXUhHPT3zOYTdJDUwQ+U2ufhO2645z+xDIdNDbeYg+HIjg/yUhd8NrZUfzowI4 xWMGyOu//u9/VKfnr65KiYQUPZtbjo5gjfIVlE6MCFFyqTBe9vvuLmB3+RO85csxwysu OgeatYYMyVy6E2G/pZICcu837I7y8CYCYK/tboN6WUD1YVLw3CK7cXL/kOG8M+pmOe+3 Tphle6kg5fYmqK+c69hqm7S4cNPFL726xin+eq0ZTtbvsrUevZeIZhncV8zjxvv5OBTL zubw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=OMzzKkzvJhU26U+FLwTI6IoolzQTUk0Pg5+SGKYtbdc=; b=Tr6Rezqe3FfVoSDZcaaPeIt1BfLXKIg5spPFmZ3uTyTXf/nfVggDaP09JqRhR8nTAs A0p/sh09nBDZWFJ6nw9VMsu111XwWHFzQpFjz0TdyGg91lYVCLz3YT10EZqarncTU0mV zPKacfwQoDQ7ett0iLPOIVpBl6ca0viu1Qp3pb3YGSEmV71yyTwOfm0nIj5QGxIn/CjO /Lmfazn+JScqtIWmtXfjbH10mxtS6wI9u1jOQVpFht2UcfN5f+RUuqSctJJ5r0t7gNEx RrnwhMAb7nKcHwLNos++iJYe8Tnuvg05MiR6n/tSIRUzVHOFMobyzM189GTZXj1D8Ufl uC/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=gUcOAmON; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="b/9yt1yh"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p10-v6si18359338plk.295.2018.07.10.22.33.03; Tue, 10 Jul 2018 22:33:18 -0700 (PDT) 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=@aj.id.au header.s=fm3 header.b=gUcOAmON; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="b/9yt1yh"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726448AbeGKFex (ORCPT + 99 others); Wed, 11 Jul 2018 01:34:53 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:36209 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726401AbeGKFew (ORCPT ); Wed, 11 Jul 2018 01:34:52 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 013E621BBE; Wed, 11 Jul 2018 01:32:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 11 Jul 2018 01:32:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=OMzzKkzvJhU26U+FL wTI6IoolzQTUk0Pg5+SGKYtbdc=; b=gUcOAmON0FQS70uL3J+CzNCeu+9Jd8u+y q/jjf19ZQn3xvUb8M61l7wam5suPOYENWhK8XiVf4tSVfKfvm7d4kVsCAl1YFfOO Rx6t9uvxss2VeqxX4+QUwrTFR1weJ/qD4bqEWHOGLQsE7Jv7RJvto6hG5VgnT4Sd 24KFtIJeSMDXkmTmrAqhCYPf5bMY+GHT/sWoYpIZruBvFpA9xEvvr2hHVvOAK7Hl iInKOrRqe4+SLLw2lPUAZ23nSu4KKRZXmVnGWjQyzHm15UJKgOwM61ywxZbVyE+L WH6t+ycTJWWs3MH2QQ7g9SR4iLWzyfjbLwKBOLu39rBX8P58RUBuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=OMzzKkzvJhU26U+FLwTI6IoolzQTUk0Pg5+SGKYtbdc=; b=b/9yt1yh +IH+pV/x/MNuiYfIwf6maGjUhmm8lds6OQstb1KCgCMh5xVpeN5tKHGtCpeRD6xv wI1XV6hHF4Q/umKO2E2p64q2pX8/lpI6O8nUlnmo1uCdizTt8T4FiSQDga/JFxQ3 R4yXCLdiGG4Azi5GRgaHiCYM/JBxHB5KVdPTwYondTFkk6bpO3qeJygINCsn34ga nrMq5DzOZH8XEEKZJ4qgfZfWUgEIf3WdlD0iaEV2CnGdroQZBHgDvMpWQt5r4/Sd xkzhG3rjHv/umFev4LF4TXIHyUQqj5eFBSHuSE5SryTsMUYV5amb2IiFW1OGBD1H qc/5QBAEjCyGyg== X-ME-Proxy: X-ME-Sender: Received: from localhost.localdomain (ppp118-210-173-37.bras2.adl6.internode.on.net [118.210.173.37]) by mail.messagingengine.com (Postfix) with ESMTPA id 604BDE45C9; Wed, 11 Jul 2018 01:32:16 -0400 (EDT) From: Andrew Jeffery To: linux-kernel@vger.kernel.org Cc: Andrew Jeffery , robh+dt@kernel.org, mark.rutland@arm.com, joel@jms.id.au, gregkh@linuxfoundation.org, Eugene.Cho@dell.com, a.amelkin@yadro.com, stewart@linux.ibm.com, benh@kernel.crashing.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH v2 2/4] Documentation: ABI: Add sysfs-devices-platform-field to testing Date: Wed, 11 Jul 2018 15:01:20 +0930 Message-Id: <20180711053122.30773-3-andrew@aj.id.au> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180711053122.30773-1-andrew@aj.id.au> References: <20180711053122.30773-1-andrew@aj.id.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Fields" expose control of hardware directly to userspace where appropriate. Examples of expected use are single bit switches or other small masks of registers where the range of values is entirely policy driven and the field is not part of a larger, coherent design. These fields can be from read-only, read-write or write-1-set/write-1-clear register sets. Using fields to control the behaviour of hardware local to the kernel exposing them is likely incorrect. The use-case motivating the fields feature is for Baseboard Management Controllers (BMCs) to expose policy controls for booting and running their host systems. Signed-off-by: Andrew Jeffery --- Since RFC v1: * Describe a 'type' attribute that determines the behaviour of the remaining attributes * Rework paths to point through /sys/devices/platform * Add a description to the commit message .../ABI/testing/sysfs-devices-platform-field | 95 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 96 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-field diff --git a/Documentation/ABI/testing/sysfs-devices-platform-field b/Documentation/ABI/testing/sysfs-devices-platform-field new file mode 100644 index 000000000000..216481d8bc99 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-devices-platform-field @@ -0,0 +1,95 @@ +This document defines the sysfs attributes provided by the bmc-misc-ctrl +driver. See Documentation/devicetree/bindings/misc/bmc-misc-ctrl.txt for +exhaustive list of field definitions. + +What: /sys/devices/platform/...//