Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1271714imm; Sun, 15 Jul 2018 03:45:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf2Od4DFOyxv9vCNKRogYY/kT8bTrwJbMPYl3oyEWwEivnXh3VwvimjSkLFYu7Nhb6s7IWd X-Received: by 2002:a63:8848:: with SMTP id l69-v6mr11731589pgd.377.1531651513469; Sun, 15 Jul 2018 03:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531651513; cv=none; d=google.com; s=arc-20160816; b=O9pDeBg5+dRdSqGho81WTYe2yX1/dPBtpgXH7y3ShPjKsWGIm8pYLLQN1NvG4jdCoH /Mm7e+oUm8k9eE65IqnMobxKOcyz5eT9ZLPcRQ7YHWZj1JnrciJpKt4Gok0D0CPrve7i q+l7woLKcIRjH95te64gu31DIxuutKRdrjaI+DLcd3EbbZS3JdhP47ipuQ9bsvHIuVuc BQIUP1BppT/rHdYIFtp4M+6MUTxzZx4wIjyTkf02JWvn+p0Sq8LuixThAcvauRe3oqYN Vc10tDICox6AbIEi6gyIYeX2JKEkS65FvEsjlGDAV1RT/E1EkBADerSAnXo2aT9n7khI HhsA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=ankUJqlvuX0pN4jD4LjttPECBObClBoh+X/u9WZWH2s=; b=ZxuE2+0wmuWLfPb9bUtxTwTvCl+0cIqzpFWD/Ew68D5h7F/Wuc4Q9iPc1JRezfZ75A +1R46nZDZBh+jSZ14qYyp3QWIZUwa65UzIQh7vInFPnvm6+Ll7tkKVsi2UZPpO8652s6 Hzx/6Siyno5WIGjIhGZAaUhXCu3I0GC8f0OOwoOdV9983whtB1UsyWCwQSRcnJziUH3n PQ5v7LoTMSx8XbjYRcQ12+sSijM4Pp9gQUlp1i7FWWCiuWb3TbvU1sS/QwfqF8BVUn90 1TrvlAV4ZRpgs6PHsdz/oGr7Hp48mN5mOFaNNPKZ58aW5RnP9x+dbIJlszuYMH+XCdae VHrw== ARC-Authentication-Results: i=1; mx.google.com; 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 e9-v6si26806649pgn.576.2018.07.15.03.44.58; Sun, 15 Jul 2018 03:45:13 -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; 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 S1726229AbeGOLG4 (ORCPT + 99 others); Sun, 15 Jul 2018 07:06:56 -0400 Received: from www381.your-server.de ([78.46.137.84]:46189 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbeGOLG4 (ORCPT ); Sun, 15 Jul 2018 07:06:56 -0400 Received: from [78.46.172.3] (helo=sslproxy06.your-server.de) by www381.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1feeVo-0006oc-Lq; Sun, 15 Jul 2018 12:44:20 +0200 Received: from [188.174.116.68] (helo=[192.168.178.33]) by sslproxy06.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1feeVo-0009pf-Eu; Sun, 15 Jul 2018 12:44:20 +0200 Subject: Re: [PATCH 5/5] iio:adxl372: Add filter bandwidth support To: Jonathan Cameron , Stefan Popa Cc: Michael.Hennerich@analog.com, knaack.h@gmx.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <1531409818-20300-1-git-send-email-stefan.popa@analog.com> <20180715113636.5394c756@archlinux> From: Lars-Peter Clausen Message-ID: Date: Sun, 15 Jul 2018 12:44:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180715113636.5394c756@archlinux> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.100.0/24754/Sun Jul 15 06:52:15 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/15/2018 12:36 PM, Jonathan Cameron wrote: > On Thu, 12 Jul 2018 18:36:58 +0300 > Stefan Popa wrote: > >> This patch adds the option for the user to select the filter bandwidth. The >> user can also read the available bandwidths which are always adjusted to be >> at most half of the sampling frequency. Furthermore, the currently selected >> bandwidth can be read via the read_raw function, while the write_raw sets a >> new bandwidth value. >> > > How will the youth of today learn about aliasing if we are so nice to them? > :) Good user friendly design choice btw. If someone is doing something > crazy where they actually want the aliasing they can hack the driver. Actually they can't. The hardware itself enforces that the filter bandwidth is below or equal to the Nyquist frequency. All the user can do is select a bandwidth even smaller. :)