Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp592317pxb; Sat, 6 Mar 2021 09:39:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrRoMi8tOyS12vN2thU7ENds68bYdDIocv0/uSmFIhxareeprOq1YYAdIBNilo3Z3iCIuw X-Received: by 2002:a17:906:1408:: with SMTP id p8mr7644405ejc.89.1615052377874; Sat, 06 Mar 2021 09:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615052377; cv=none; d=google.com; s=arc-20160816; b=g1Dbi+ek9tilwLCNHMSgEuV90MCNRumdS2MvmkmFekWRXk9qePy7JZ2Mw1255CDhU8 tiLLcx6/1jlVEitusL94AUZrVA9a4/OnQyBjkBqqLtNqefZUaHsl1yFRuhlx1Chc9vhA d0wKWmotSEocmWmcaUXIaogIyq4kC1ZEQEMWXbWQSLSlA1zNNoKiEMd26Ph6Vo/3quj0 E9eIqXjEZMUxCjvpMkPHrebOIi5ON+ICWB4DRKVenTIvMUnOKM0zzfDecsq0wT+qfXaj koG8xwIUbZwd10kTAUKz48Wpe8wu3CToL26/MU8FwcgIDM/VUOLPzwDTgZIOsLKyWFad 9KiA== 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=LYlZaVfeMszqk0Q6tdC/KYu2r9KeFaHlHLTCqve5J70=; b=yZ4jaN3yyc4VVBzvZ0nytDElBNRWgm1sZzzNMkvJpZ4CFOFkCMU/EnUybKN2kWdTTE +JfFDUUvrWdxYzzob9weSZ5EasfK1BKePyzC76VK6P2hY1RjS7ep78WdPa44E1F0W+Rh sMCzr64Yxva3mm0dp2TphN1OdfaORwqwyJ3v2PNeKRC3phgjxwSghFZ3vmS6EHRg7xtR Cc/e+LFkPtZJG131NypJgtGkKp0ii1cuN/sjWOOhu+UViUIpZ/it5J8EJn6nzXaeNHmv DVKKp+UVqI9ymFUCBu6IRTBC5Mnr5ol/Q3lg2RRE5G2CU/XA1hOrvcNdVkT459gFg7w9 i41w== 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 cf2si3701486ejb.332.2021.03.06.09.39.14; Sat, 06 Mar 2021 09:39:37 -0800 (PST) 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 S231147AbhCFRfH convert rfc822-to-8bit (ORCPT + 99 others); Sat, 6 Mar 2021 12:35:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:59650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbhCFRey (ORCPT ); Sat, 6 Mar 2021 12:34:54 -0500 Received: from archlinux (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 06F7664FCF; Sat, 6 Mar 2021 17:34:52 +0000 (UTC) Date: Sat, 6 Mar 2021 17:34:49 +0000 From: Jonathan Cameron To: "Hennerich, Michael" Cc: "zzzzArdelean, zzzzAlexandru" , "linux-kernel@vger.kernel.org" , "linux-iio@vger.kernel.org" , "lars@metafoo.de" , "Sa, Nuno" , "Bogdan, Dragos" Subject: Re: [PATCH v3 0/6] iio: Add output buffer support Message-ID: <20210306173449.06f2f32b@archlinux> In-Reply-To: References: <20210219124012.92897-1-alexandru.ardelean@analog.com> <20210221120106.00ae1078@archlinux> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Mar 2021 08:57:08 +0000 "Hennerich, Michael" wrote: > Hi Jonathan and others, > > With output/dac buffer support the semantics of the scan_element type may change. > > Today the Format is [be|le]:[s|u]bits/storagebitsXrepeat[>>shift]. > > While shift (if specified) is the shift that needs to be applied prior to masking out unused bits. > > So far so good and it sounds universal. > > However, we use the right shift (operator) for that, which makes sense for capture devices. > For output devices the more logical operator would be the left shift. > > I'm not proposing a new Format here. I just want to get some agreement that for an output device > > le:s12/16>>4 > > is understood as a left shift of 4, since the unused bits are then on the LSB. Good question. Guess I wasn't thinking ahead when I came up with that :) I'm not sure I'd mind if we did decide to define a new format for output buffers. Feels like it should be easy to do. What do others think? Jonathan > > Thoughts? > > Best Regards, > Michael > > Analog Devices GmbH > Michael Hennerich                       > Otl-Aicher Strasse 60-64 > D-80807 Muenchen; Germany > > Sitz der Gesellschaft München, Registergericht München HRB 40368, > Geschäftsführer: Stefan Steyerl, Michael Paul Sondel, Yoon Ah Oh > >