Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3689545pxb; Mon, 30 Aug 2021 08:22:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKostjuUltCeeY5WzzpXBzN4lWHt4Ufbi5C9InaJvRjNgirTR21dBSAsUegzBPjyBr/xaR X-Received: by 2002:a17:906:fc7:: with SMTP id c7mr25041572ejk.333.1630336922296; Mon, 30 Aug 2021 08:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630336922; cv=none; d=google.com; s=arc-20160816; b=rHaIRtlqMAg07ZkfQjJRJ82XXQINLtzUuZ83Eb3IX0QpWyUmZTeB7KUJryKI3rzUeg Oq8N2IeMjYnnAMbwvfttiBsjdXsIm9kwY+GIotwulh4PzwvWOVYaX3ZkJTuffxjCYogi FNV3jYp60cLDBd/+0hc0OaBZeZvA3MGNm6eTamL4lQkmuPmqwZc0mPiFpZKFMbpY+iWJ D5S4UTMGOZks0cWoEtfXEP9LH8dUu3Bq3ZVUPe8LjvsVa62eLA6cjvTvEvq9QXl449WH L4agVAVTLRlh5JzzypLOHRkMqZ8vtPoDNqfdIZGVi7ep9V9TwZs9ttnGLGKA8o4lfVlJ 6WZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Xx/fCi2YzaU/EqaSA4pOu3iEDwxjtgsfXua+qH0/xYI=; b=Ebt0WktW0K3NN8tMh27L+4i8LGUQnV7Sjc1uSI4PkxBbrZzl3X8Ko8gs6FCzcpgGg8 SkR9HAmYyheHI0p2nn8p/RVePhBfjpdUAaz8xC+ZN4MMrBJrIZktWgmzKXZzSbAqJUH8 FWwepP/C0NFbPV/Mr3qQLTwh0QBgaPqaUzvVEtZtzLChu21sMuCe4pDM36GdCRCemeAo kSLAT2ZpAwSgvtk1J/36XriNv33kpKVZtiXm4oSR/KFUAQ+wYEaCcVTywau/LJqnPj/e yn2vnHp4s6UiSqA4+WE4tj9UIbnLczrTKFGaLR0rl/39HL7nTWyE6nmgl8IsO/abTvK1 TidA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si17736032ejb.600.2021.08.30.08.21.27; Mon, 30 Aug 2021 08:22:02 -0700 (PDT) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237187AbhH3PUF (ORCPT + 99 others); Mon, 30 Aug 2021 11:20:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:35218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237473AbhH3PTt (ORCPT ); Mon, 30 Aug 2021 11:19:49 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (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 B0E0660F45; Mon, 30 Aug 2021 15:18:52 +0000 (UTC) Date: Mon, 30 Aug 2021 16:22:03 +0100 From: Jonathan Cameron To: Mihail Chindris Cc: , , , , , , Subject: Re: [PATCH v4 4/6] Documentation:ABI:testing:add doc for AD3552R ABI Message-ID: <20210830162203.6f40790c@jic23-huawei> In-Reply-To: <20210820165927.4524-5-mihail.chindris@analog.com> References: <20210820165927.4524-1-mihail.chindris@analog.com> <20210820165927.4524-5-mihail.chindris@analog.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Aug 2021 16:59:25 +0000 Mihail Chindris wrote: > Add documentation for option for enabling precision mode > of ad3552r > > Signed-off-by: Mihail Chindris > --- > Documentation/ABI/testing/sysfs-bus-iio-dac-ad3552r | 10 ++++++++++ > 1 file changed, 10 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-dac-ad3552r > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio-dac-ad3552r b/Documentation/ABI/testing/sysfs-bus-iio-dac-ad3552r > new file mode 100644 > index 000000000000..37573245f3d5 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-bus-iio-dac-ad3552r > @@ -0,0 +1,10 @@ > +What: /sys/bus/iio/devices/iio:deviceX/precision_mode_en > +KernelVersion: 5.13 > +Contact: linux-iio@vger.kernel.org > +Description: > + Select between fast mode and precison mode. > + 0: Fast mode - For 12 bits precision, the most significant > + bits are used and 16 bits are sent to the > + device per channel, lats bits being 0. least significant bits being 0 perhaps and definitely not lats bits :) > + 1: Precision mode - For 16 bits precision, 24 bits are sent to > + the device per channel, last bits being 0. I don't think the ABI cares about how many bits are sent, but rather it cares about the precision. I'm not keen on this ABI if we can possibly avoid it. It is highly device specific and therefore unlikely to ever get used by any standard userspace code. Given I'm fairly sure no linux host is ever going to get anywhere near the maximum rates this device supports, perhaps we should just always use precision mode and not worry about this detail? Jonathan