Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4626104pxv; Tue, 20 Jul 2021 08:04:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5Gt5jKw8VoMv02ZbWpXMgc2NGHNGLPwO7plsNYOsLSoW5RkHm7LMK1wDEmY2BhDWkMTMn X-Received: by 2002:a05:6638:25c7:: with SMTP id u7mr26693183jat.26.1626793454387; Tue, 20 Jul 2021 08:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626793454; cv=none; d=google.com; s=arc-20160816; b=Vh7flM1887I8WQB6uRLLFVBTRpLGFD+ma+eWnr2qJB33mbw0exlqmVQyEPE+07cHkK 4qG9kVFAkXFJdXPd8XXDoObcPrxqcnhTHG/9NXcVESe1KqzzxmpVVK82SkiiwUADKAZA +QQFLexJjD7B47bX+K9+/zaQbcNOH0q1aj0eZ+KrFXUMV38YVK7R80lDR8L+LP79eXQt MubkRaU984k4xyITxM24t5aDp9l1uSZWWfOim5vSkCrp7p7AHWjivEoWL2P/n95pjcJd wvIn1wrx2RuwFZaP5Qngd4IwWA0nLAQTY0AxtHRnG489OE8s3fcC9mCX53PtvD1SUDFa stJQ== 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=P7LMpW5XzWUvxMXqbWYSmu2pjZJM72dfTIn65I782GM=; b=rBv/TnU4Su9RrXZ9Q3CbTdXO562nSw8xuY0sd5YxanB94Zw70zf7H81hwFNIOrH3L4 RQUZIwj9ZBaxJSBCKn8qeDKj/r/CuysJb96PzyhuCDupf6m5As1je8nzvTdC9SFbYa5a zaR6IWmv9qzhAb31uNcRStRvQ5N4NasPkyyNF6W4DUnmc+telxOmC8XrkISH8y8VrQqc DTJYKqIyxwK1gabJCuRO/ar4sI5nAXpp5dHNc3q/lDBLlAFefTFP2hHaEDJKBOMwUzUD Ofrp5qCKGk9UVq15pEvAN3wGyPj8Yp7IaWjr0dqVer01BzfQYkUweetnf4vSR8DgidD+ jRiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n+wWRzMY; 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 v10si5827348ilh.117.2021.07.20.08.04.02; Tue, 20 Jul 2021 08:04:14 -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=n+wWRzMY; 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 S234767AbhGTOVe (ORCPT + 99 others); Tue, 20 Jul 2021 10:21:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239559AbhGTOPU (ORCPT ); Tue, 20 Jul 2021 10:15:20 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1809C0617A7; Tue, 20 Jul 2021 07:52:42 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id s18so22727193pgg.8; Tue, 20 Jul 2021 07:52:42 -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=P7LMpW5XzWUvxMXqbWYSmu2pjZJM72dfTIn65I782GM=; b=n+wWRzMYO/1gyDJXN5G/60cdAWJH5Yr/7yj6VsIKzZJnyzhbYVVBijDepJmljmhzTJ h5zBbl83UFS38rCqoSZOLNW7O4jyqBXPCgY8UbJ/ltHylbX25bEBKrKBCiKjIVvpKvml IzK8oARt0PMAYUBsfsjK9GUd0Y+UYJrDWmP1DeVMZjrlsiiUfDM4pbhTGx1oGulY7Nbo QQyHBn0ADzUMxarjYtZkw0nI+IT6qweW2fOFudck6UEXWCxSEXLlqIYmbp4kpp9zJAyX oPTw+BRvKSgFTcYbN7wZwkVN7cOnTAcNZM44NOo2yi2j9RnTY9XunRB2aBopy99kxg+r vmrQ== 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=P7LMpW5XzWUvxMXqbWYSmu2pjZJM72dfTIn65I782GM=; b=pJPMKmQIH1/yUz4SAxbDSJlydT7n2uZUGKeNrOA4CaYn12VDQlywCNwNAfnr5+HEIg 0UERl/O+6pDMq20KxOoIAQb4DcZx6xyM2XnvDx4LH7YLDG1LeUgZ2XRNq4L3gMBIVGuU 2VrbVSrBwy+2sK9lJI6T3zQ0N22IKuZxh99dF8gOTOfuS7iwxoR+sz1QGs0AyLT4kB1g 04phXQE37Gb+5I8kGny9pbHqN22YOx3NFBcWoSpb8UmFsc8iz8Togmun8IdTPpkKA2B9 PicxgoSO9rO7lrepfUVjHsRJmqJxSnoI/zrE7LS9Yp/SNk+R+XPzPlp/lKoUFR7S57Iz ar8g== X-Gm-Message-State: AOAM532myAdhvCDTjd819pHu79dfn0UAmblSscRv1iu3FtQA2Z4586vZ +nF/Lk2wJBL1Xj58g+4a5Ky5/clHgyIfqPmqi+s= X-Received: by 2002:aa7:8a04:0:b029:332:950e:d976 with SMTP id m4-20020aa78a040000b0290332950ed976mr32334962pfa.40.1626792762291; Tue, 20 Jul 2021 07:52:42 -0700 (PDT) MIME-Version: 1.0 References: <20210716114210.141560-1-antoniu.miclaus@analog.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 20 Jul 2021 17:52:02 +0300 Message-ID: Subject: Re: [PATCH v6 1/2] iio: frequency: adrf6780: add support for ADRF6780 To: "Miclaus, Antoniu" Cc: "linux-iio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "jic23@kernel.org" , "devicetree@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 20, 2021 at 5:33 PM Miclaus, Antoniu wrote: > > From: Andy Shevchenko > > Sent: Tuesday, July 20, 2021 5:08 PM > > On Tue, Jul 20, 2021 at 4:17 PM Miclaus, Antoniu > > wrote: > > > > From: Andy Shevchenko > > > > Sent: Friday, July 16, 2021 5:53 PM > > > > On Fri, Jul 16, 2021 at 2:43 PM Antoniu Miclaus > > > > wrote: ... > > > > First question is why not to use the regmap API (I have heard it has > > > > gained support of 17 bit)? > > > > > > Initially that was the plan, but after this patch: > > > > > https://urldefense.com/v3/__https://github.com/torvalds/linux/commit/41 > > 91f19792bf91267835eb090d970e9cd6277a65__;!!A3Ni8CS0y2Y!ptUV0YC2nfD > > 6AdH_y5U0ziyELl4B9pDL0ubkdpFHFtrFNE_NqUS_TWm_gE-SlHV315Ak$ > > > the custom write formats for regmap allow the read only via cached > > registers. > > > > > > Therefore, I preferred using spi transfers for write/read to/from the > > device. > > > > Not sure I follow you. That patch is upstream. Does it prevent you > > from switching to regmap SPI API? > > It does not prevent me from switching to regmap SPI API. > It will prevent me from using regmap_read to read directly from device. > https://github.com/torvalds/linux/commit/4191f19792bf91267835eb090d970e9cd6277a65#diff-3e0b7d2f0a55adb6573693a514cb8024a81a55da848cb22632ab5fd4dd6dd4e4R39 How? If it's the case it's a huge regression in the API and must be fixed ASAP. -- With Best Regards, Andy Shevchenko