From patchwork Thu Jun 21 21:09:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 10480639 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C0E2860383 for ; Thu, 21 Jun 2018 21:23:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A460F1FFE6 for ; Thu, 21 Jun 2018 21:23:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 959E32887E; Thu, 21 Jun 2018 21:23:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 301771FFE6 for ; Thu, 21 Jun 2018 21:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=euwRhoUst6/GLQD2k7LkhGMTYMF1MohPS0CnFp4jzxg=; b=VaQ4rBWmsryPcLT0UTox31LSjy pEI79jlYNtT1ovDVa18ee0T4wM6s5dwl/kjgU5QHLzIyJYjzuYOD/r7jCv5IXwFbmm3dHuUp1cLj4 D7NZOzssTvsAUY3GZNQZ5MylP/aZy2Q4X66ffwJYsth0i9wTLEPFqYh45rs9++3jWF5CoNsbwUJqR VoLZ9M637wg45X5X6wX88Kh7b+QFQgq4QgpCmkwlJ6ZWry8jvUielkWhMo1Pd0esEpjZhRGAYOEKw P5nTfWG8/hqq340mHIQAQgGQCy8AlSv9RKjh5lfAvw+GiXTcmEPgQ3CoSVI0DS1zwoNHW8Y2ZnVj7 9KQ3xuLQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW72t-0007qM-Th; Thu, 21 Jun 2018 21:23:11 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW72r-0007gs-Jm for linux-arm-kernel@bombadil.infradead.org; Thu, 21 Jun 2018 21:23:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4zP3g6YtZ7zJLe7eZLat2TAxtKPNPvZLc7PSTZXPCP8=; b=hLv3HJQgcpFYQDNgqQ57MrLsp byfS9dcDMZN4MNVvmYVahI1+JR5mKpgfbfdIQURQ8Sr8lDGKguzbp/8/nDY7Jl52vCSCP4COutkxq n5KFvJcSHRQAREM8HH92LYcnM9QqVlwTl+p2BOK1jcod06Qrx5KNJk5OYrpVFXifxd6ErNjvT6O4v zmET+DZ0uBNWIbhvOUp6WU8eUrs9I79cKv0aMcErVMWQOlPvXKxIeSuYajjEb0zMzyKWiJXxyIaPS nANcUDG3W3j9HuDT5lbtrxYg5yvZv37KhXXYG4D0klCyOBsCg83RAwgurOgAfZDbmKAY0YT0COsLB Cz3dXbKFg==; Received: from mail-yb0-x241.google.com ([2607:f8b0:4002:c09::241]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW6pa-00029D-U4 for linux-arm-kernel@lists.infradead.org; Thu, 21 Jun 2018 21:09:28 +0000 Received: by mail-yb0-x241.google.com with SMTP id x6-v6so1752376ybl.12 for ; Thu, 21 Jun 2018 14:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4zP3g6YtZ7zJLe7eZLat2TAxtKPNPvZLc7PSTZXPCP8=; b=K4OehykXsAfcP0AmEkiq6ehVSso8wI/qeILkJdOWJeVn8LUt3GVVenyCa39wW8uC4l J7NPsyOI/P1y6+aurK7IizsrQiwo3Fspkm3WKEqgTl1DpXma6UcBoMSB5qXKYfaeXYUn AYJGYFaLEakQb4dcrPyr1IakMZ34+eqHH3tg7NSWs1fjNMPWFDBs62WGiwR12CLwltlD dS5hHkWkFNmYkM8Swt+Lj6+BERPqM7L7HayEcrYYTeeXXi4PvVeUJGe7sWAw2QkoMt+j ii0UWQbwRCKQnJy0BgyMrSYGeaiimqFL571ggo7i6c9de4rSM2gls2kiGT+dbV20tzgy U17Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4zP3g6YtZ7zJLe7eZLat2TAxtKPNPvZLc7PSTZXPCP8=; b=m79iKsmqdtSPoAlYFlNl0hnVHsFXW2qJsW/plIiLl5b2BgjeQv2mOt0sXAw+b1gc22 TLzqORsBb/bMISPvz6x7tChbxHva2Ku9BFZ2+Q/ToaodQm2AmNpN+MGQVduOtE1i7GfJ JF1C1TWRMJNdIYuheSg7oNkLsuXZ//ACwBSpr6jHv5oJHScphOcm8V28BhEVRMsv/U/Y hFUAs0LGSdnJ8rzHDEqnhqeH+9/EMwrSyWqsZke8ryuhmLgU8RmVpfw4lM3vKmLvbP7b UjmVHYzWobKQyr9o/FsEkIx2h8xHIpvDNS2jP91eiZBsUi7jiIyZ4UwVl1n27mzOADrU FoNw== X-Gm-Message-State: APt69E2KLZA1m+htDKe/TGvIi0yhazb4AE5gWSu4U1BC5fi+OBp0cuDP jXTMJhI0D3zqEoX4xyPzFdHEow== X-Google-Smtp-Source: ADUXVKJ5B6IQhgZAt2UwhZlE8gRDFGZNBwMCyI0IpExgmX5nJwWnrMMQVqAWE/W1+Mx+L8pVhoJTMA== X-Received: by 2002:a25:dd86:: with SMTP id u128-v6mr13971117ybg.271.1529615354805; Thu, 21 Jun 2018 14:09:14 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id q7-v6sm1932750ywa.57.2018.06.21.14.09.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 14:09:14 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org Subject: [PATCH v7 10/10] iio: counter: Add deprecation markings for IIO Counter attributes Date: Thu, 21 Jun 2018 17:09:08 -0400 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180621_220926_968542_73EC8449 X-CRM114-Status: GOOD ( 14.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, lars@metafoo.de, benjamin.gaignard@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray , robh+dt@kernel.org, jic23@kernel.org, pmeerw@pmeerw.net, knaack.h@gmx.de, fabrice.gasnier@st.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The IIO counter subdirectory is now superceded by the Counter subsystem. This patch adds deprecation warnings to the documentation of the relevant IIO Counter sysfs attributes. Acked-by: Jonathan Cameron Signed-off-by: William Breathitt Gray --- Documentation/ABI/testing/sysfs-bus-iio | 8 ++++++++ .../ABI/testing/sysfs-bus-iio-counter-104-quad-8 | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index c7353030670a..fc50adf08e47 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -1649,6 +1649,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_raw KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Raw counter device counts from channel Y. For quadrature counters, multiplication by an available [Y]_scale results in the counts of a single quadrature signal phase from channel Y. @@ -1657,6 +1659,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_indexY_raw KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Raw counter device index value from channel Y. This attribute provides an absolute positional reference (e.g. a pulse once per revolution) which may be used to home positional systems as @@ -1666,6 +1670,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available KernelVersion: 4.12 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + A list of possible counting directions which are: - "up" : counter device is increasing. - "down": counter device is decreasing. @@ -1674,4 +1680,6 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction KernelVersion: 4.12 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Raw counter device counters direction for channel Y. diff --git a/Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 b/Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 index 7fac2c268d9a..bac3d0d48b7b 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 +++ b/Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 @@ -6,6 +6,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_index_synchronous_mode_available KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Discrete set of available values for the respective counter configuration are listed in this file. @@ -13,6 +15,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_mode KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Count mode for channel Y. Four count modes are available: normal, range limit, non-recycle, and modulo-n. The preset value for channel Y is used by the count mode where required. @@ -47,6 +51,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_noise_error KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Read-only attribute that indicates whether excessive noise is present at the channel Y count inputs in quadrature clock mode; irrelevant in non-quadrature clock mode. @@ -55,6 +61,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_preset KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + If the counter device supports preset registers, the preset count for channel Y is provided by this attribute. @@ -62,6 +70,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_quadrature_mode KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Configure channel Y counter for non-quadrature or quadrature clock mode. Selecting non-quadrature clock mode will disable synchronous load mode. In quadrature clock mode, the channel Y @@ -83,6 +93,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_set_to_preset_on_index KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Whether to set channel Y counter with channel Y preset value when channel Y index input is active, or continuously count. Valid attribute values are boolean. @@ -91,6 +103,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_indexY_index_polarity KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Active level of channel Y index input; irrelevant in non-synchronous load mode. @@ -98,6 +112,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_indexY_synchronous_mode KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Configure channel Y counter for non-synchronous or synchronous load mode. Synchronous load mode cannot be selected in non-quadrature clock mode.