Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp121787pxb; Mon, 16 Aug 2021 01:13:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjfcRUo0CsXPRNODUJ+zqfZhggbqxPCom5fOIy4nM66jszmtlDZcBeaoBTFDAK3Fkb0Sky X-Received: by 2002:aa7:d681:: with SMTP id d1mr19161986edr.186.1629101591387; Mon, 16 Aug 2021 01:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629101591; cv=none; d=google.com; s=arc-20160816; b=u0DAqb0mdwuOHCn9oHeHgpmanAvxAZ8C/AE3GfRonPi53EJlqBG/thLIeVSW7VIXFw dY4ba+5xFNiJqCynZrHEcKeOGy7q/DaNlTmTCAysaEmZXnQJ4NllA/oug45BExTHiJnR YCEBlOQWEFaErGy5gkRH9aXE08GadJSvi3xMyuCW5ZHlFRzUOPQx/INHtfaYUiXYXlol H3X2JzgpxQcvneUEqZk8aZIosNNyfsfsNrworDxyS0gvERFgnyKXu8bcgOKViLU2QpNX GekDYbE3LYnaXg06JJK5bOkWeSI33DiGgvINTcZp5W0z4eNTE4DEQusBVgBi3rCYyID/ KYPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mSmEDOlHPkeWDBRZsKIEYIy20P5Bumb1XzBEX9ztmHM=; b=0iNtuftEG27A8kyDz9sRcbisGv25hlSYT7JJ/wADgO/RWVi+7LzPNySebm1dD4FCIR 37Zekhba949ilWnMN1zQvL6bMXfWmPbDlauflx+dCXaD33YtdVs5Pvr0TDzXzQ/e45BJ ZwKSrAgMkO/Sa14oYZIhc8E/OE6EhPoN/ANtBiGasTJeOT5M0OadUpnXgmfhqvDp+vS3 aYtWSUcEzyveCZJcztKq01yVRpYP1Zt2F3ND0PiBanYIRS8BuK7w6aHuaFHeRxY+co9T JPIC5RN+bAxasQVdb9pypVrNzOotWqes8RwRz6dj+fQl+zLTc7bIP3KEKRXEeU3a2VzM +M/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p8k4w4hL; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u24si7273620ejt.108.2021.08.16.01.12.47; Mon, 16 Aug 2021 01:13:11 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p8k4w4hL; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234552AbhHPIJa (ORCPT + 99 others); Mon, 16 Aug 2021 04:09:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231716AbhHPIJ3 (ORCPT ); Mon, 16 Aug 2021 04:09:29 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB165C061764; Mon, 16 Aug 2021 01:08:58 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id j12-20020a17090aeb0c00b00179530520b3so10633749pjz.0; Mon, 16 Aug 2021 01:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mSmEDOlHPkeWDBRZsKIEYIy20P5Bumb1XzBEX9ztmHM=; b=p8k4w4hLeDEvIU4qu3SRcoToR2AJ/DRkNtydZvZVj+Jb9xt2ALCyvCxULROJQVseyn kibQS5SlQxlxEWYF+xrhh5eHTQrPLx28513UCtNO/eXrvFoTtiMtYDreHCcPcpNMCZSp oObch4R9F0zWKM6bbiZYJtFCbSlFQsh1b4YjtnsPDEMjG6OgbF7JfoPvJ6Xkmhi+X/Be VTP3S4uKajFIEoyVevbB24z6FJ1OP14vo3AI2GPmNMll4g1NQ+GnvR5Z2x7uoZtuSIOk DSwJOYGXRsnFV/p49La4w2oDfPMjVluYo7buRiUOadYarfve8+TuKi87240czfCCpG8T lqJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mSmEDOlHPkeWDBRZsKIEYIy20P5Bumb1XzBEX9ztmHM=; b=gQ8mvXUAkof/e0AlCYQM/XUP3NMgKdieKoZaBhzGuNiVccSihdg898OU/qUrjXNf+K 4iTM2SHbZqKy5ZBFQLBYxhC1MAWEJBvTB5z4vel9078zgBnJN5VkmUX+Innlt+TaYClK C77EhEKpXPx812hHxVdhInPdnV06z7OA5iujwnpzfQKO0AZl8tT2uSxz+0NOGSxtTGEu auasER4hr1CA8jmdQE5XHaAGfy7CrHIN0XSzI9aykNDqt69F8HCAYpFehgjZbsK14zQ+ NP5s/RNST5xO4B1DnreTH32C6eYyRoXBaKDD6NBG1R2P/WCtppmkRLgdxGj74h4nobe3 oWJg== X-Gm-Message-State: AOAM530I7tcBt7HITkqaGK06Ctq5O1tf12cIsLVJNel4HGBeXrlPTvM/ G9vgHULWFasX5eZXNtWEVrrrIPjw13hxB4Yx6oQ= X-Received: by 2002:aa7:9618:0:b0:3e2:1bc3:aa93 with SMTP id q24-20020aa79618000000b003e21bc3aa93mr1279192pfg.73.1629101338516; Mon, 16 Aug 2021 01:08:58 -0700 (PDT) MIME-Version: 1.0 References: <20210815213309.2847711-1-liambeguin@gmail.com> In-Reply-To: <20210815213309.2847711-1-liambeguin@gmail.com> From: Andy Shevchenko Date: Mon, 16 Aug 2021 11:08:19 +0300 Message-ID: Subject: Re: [PATCH v6 0/5] AD7949 Fixes To: Liam Beguin Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Charles-Antoine Couret , =?UTF-8?B?TnVubyBTw6E=?= , Linux Kernel Mailing List , linux-iio , devicetree , Rob Herring Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 16, 2021 at 12:35 AM Liam Beguin wrote: > > While working on another series[1] I ran into issues where my SPI > controller would fail to handle 14-bit and 16-bit SPI messages. This > addresses that issue and adds support for selecting a different voltage > reference source from the devicetree. > > v1 was base on a series[2] that seems to not have made it all the way, > and was tested on an ad7689. > > v6 drops support for per channel vref selection. > After switching the voltage reference, readings take a little while to > stabilize, invalidating consecutive readings. > > This could've been addressed by adding more dummy cycles at the expense > of speed, but discussing the issue with colleagues more involved in > hardware design, it turns out these circuits are usually designed with a > single vref in mind. > > [1] https://patchwork.kernel.org/project/linux-iio/list/?series=511545 > [2] https://patchwork.kernel.org/project/linux-iio/list/?series=116971&state=%2A&archive=both > > Changes since v5: > - rename defines: s/AD7949_CFG_BIT_/AD7949_CFG_MASK_/g > - rename AD7949_MASK_TOTAL to match other defines > - make vref selection global instead of per channel, and update > dt-bindings Same as per v5: is it a hardware limitation? It's unclear to me what happened here. > - reword commits 2/5, 3/5, and 4/5 > - move bits_per_word configuration to struct spi_device, and switch to > spi_{read,write}. -- With Best Regards, Andy Shevchenko