Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp527249ybh; Sat, 7 Mar 2020 04:10:38 -0800 (PST) X-Google-Smtp-Source: ADFU+vu+E6KMPke3Gx5wx0eAt6WB45irrF+cLWmjUEQen4bBtP3Pl9sHaWVNaFnaUk1XObn0a7IM X-Received: by 2002:aca:cc4b:: with SMTP id c72mr5899341oig.139.1583583038459; Sat, 07 Mar 2020 04:10:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583583038; cv=none; d=google.com; s=arc-20160816; b=HFJO02FGFfHKsOndRORVwiUsy6NRfJAhR7pOAZhPuCBkMpLIxSAC5Z5n5w0LCuwT74 GMbIEQGPVttBknkXMbrfrPSaOtKosQHnH/BakgsvSYKhA+DROTFjyNtjtoNwBVrVKwOe INq+ZMtcl9pVenii1nNJc/tjkRSNbdIjY3jUJB/FByxKtYM+YpGisLGKS+N4ezkeoqEV 6hGjG9jVdGFUz/8L9c5+X0tE6U2QC18UY7OIg+ifnRi2P2lfFPieapVX039pKudX7LKi +ljYw9UdfXo0k9XSPd2Czc7cN5YggvnNNx5LQP/EU63KKvCLUJtvkRcNCpGlkf4m0A4I J06A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9+dAf5QmEkVQZUD7c8txi1IpxZd69Ww5HdFcQ9BERWU=; b=h1LWiAVVajHMECfSkDbEBI5iAjUJVxqKjGFQNGNXPeaAiqjm76HuaSxyOlpgrvWb5I CzloFKqvyfQU/XfdKXcl5NIVewPqCTNyAWOVzJKsq2kcNeb4ieaEYcPaOsQm5Ur+07/v qsPFpWHRjV4/Xb9ArfSQzGfSN45PUysH1TZMEfXWa37Ti2MI/OYaOzMrjnHP3UC2RdGO mmP9RjJFhxZXjbwqSauqMc80VC6On5rfwLXMIzyZhYLxsijKLQKVRLJTPShA+sp8ej0V 8WLNQtKBmtg6fD6yEzUPQi30fCnUkf7oRUPWhRplls7hgkefZRVZOUUjGsmg2mh9OWKa q52g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2sLERTBv; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si2921403otr.94.2020.03.07.04.10.26; Sat, 07 Mar 2020 04:10:38 -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=@kernel.org header.s=default header.b=2sLERTBv; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726281AbgCGMJu (ORCPT + 99 others); Sat, 7 Mar 2020 07:09:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:52636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbgCGMJu (ORCPT ); Sat, 7 Mar 2020 07:09:50 -0500 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3ADA1206D5; Sat, 7 Mar 2020 12:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583582989; bh=wVfsIRTo1dZQhjeuU0x1McX2IlXWTN3PEbN4+tM98j4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=2sLERTBveKXyRYHPBsO8wyvQyqkOI8fKx97HGemxCj7RJPhpCYW874E8XV1n5G4Ht e/Y1GZCyI+n6uRnFpUKjIcOSZY75rBEyMfMgtKFJGGjsaCTJo1mYishV1/CpvYTWxU gW8zWYsU8DPc1xRH5w06sEI07YzG3brSxoPDJeAM= Date: Sat, 7 Mar 2020 12:09:44 +0000 From: Jonathan Cameron To: Alexandru Tachici Cc: , Subject: Re: [PATCH v2 6/6] iio: accel: adxl372: Update sysfs docs Message-ID: <20200307120944.5e369676@archlinux> In-Reply-To: <20200225120909.12629-7-alexandru.tachici@analog.com> References: <20200225120909.12629-1-alexandru.tachici@analog.com> <20200225120909.12629-7-alexandru.tachici@analog.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 25 Feb 2020 14:09:09 +0200 Alexandru Tachici wrote: > This patch adds entries in the syfs docs of ADXL372. > > Signed-off-by: Stefan Popa > Signed-off-by: Alexandru Tachici > --- > .../ABI/testing/sysfs-bus-iio-accel-adxl372 | 30 +++++++++++++++++++ > 1 file changed, 30 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-accel-adxl372 > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio-accel-adxl372 b/Documentation/ABI/testing/sysfs-bus-iio-accel-adxl372 > new file mode 100644 > index 000000000000..709376b54bec > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-bus-iio-accel-adxl372 > @@ -0,0 +1,30 @@ > +What: /sys/bus/iio/devices/iio:deviceX/buffer_peak_mode_enable > +KernelVersion: > +Contact: linux-iio@vger.kernel.org > +Description: > + This attribute allows to configure the FIFO to store sample > + sets of impact event peak (x, y, z). As a precondition, all > + three channels (x, y, z) need to be enabled. > + Writing 1, peak fifo mode will be enabled, if cleared and > + all three channels are enabled, sample sets of concurrent > + 3-axis data will be stored in the FIFO. As this is referring to the internal fifo (I think!) should we name it hwfifo_peak_mode_enable to separate it from being related to the software "buffer"? > + > +What: /sys/bus/iio/devices/iio:deviceX/activity_detect_event > +KernelVersion: > +Contact: linux-iio@vger.kernel.org > +Description: > + adxl372 works in loop mode. It will loop between activity > + and inactivity detection mode. The thresh_rising sysfs files > + found in events/ need to be configured in order to define when > + the device will mark a sensed acceleration over a period of > + time as activity. Hmm. As you noted in the cover letter this is a bit odd having a mixture of an event and a more fundamental state control. Please state what value this will provide when read. > + > +What: /sys/bus/iio/devices/iio:deviceX/inactivity_detect_event > +KernelVersion: > +Contact: linux-iio@vger.kernel.org > +Description: > + adxl372 works in loop mode. It will loop between activity > + and inactivity detection mode. The thresh_falling sysfs files > + found in events/ need to be configured in order to define when > + the device will mark a sensed acceleration over a period of > + time as inactivity.